- Katılım
- 2 Eylül 2002
- Mesajlar
- 5,034
- Açılan Konu
- 485
- Tepki puanı
- 75
- Konum
- SEO
x. abcde, fghij. y. (aaa) 1. (bbbb) (ccccc) dddd: eeeeeeeeeeeeeeeeeeee.
x. abcde, fghij. y. (aaa) 1. eeeeeeeeeeeeeeeeeeee.
x. abcde, fghij. y. eeeeeeeeeeeeeeeeeeee.
x. abcde. y. eeeeeeeeeeeeeeeeeeee.
Bu satırların tümünü x. ve y. göre 2 ye bölebilecek PHP için regex e ihityacım var. Bu regex i preg_match_all fonsiyonunda kullanacağım.
Örnek vereyim
1.satır regex ten sonra şu şekilde olmalı
x. abcde, fghij.
y. (aaa) 1. (bbbb) (ccccc) dddd: eeeeeeeeeeeeeeeeeeee.
2.satır regex ten sonra şu şekilde olmalı
x. abcde, fghij.
y. (aaa) 1. eeeeeeeeeeeeeeeeeeee.
4. satır bu şekilde
x. abcde.
y. eeeeeeeeeeeeeeeeeeee.
x. abcde, fghij. y. (aaa) 1. eeeeeeeeeeeeeeeeeeee.
x. abcde, fghij. y. eeeeeeeeeeeeeeeeeeee.
x. abcde. y. eeeeeeeeeeeeeeeeeeee.
Bu satırların tümünü x. ve y. göre 2 ye bölebilecek PHP için regex e ihityacım var. Bu regex i preg_match_all fonsiyonunda kullanacağım.
Örnek vereyim
1.satır regex ten sonra şu şekilde olmalı
x. abcde, fghij.
y. (aaa) 1. (bbbb) (ccccc) dddd: eeeeeeeeeeeeeeeeeeee.
2.satır regex ten sonra şu şekilde olmalı
x. abcde, fghij.
y. (aaa) 1. eeeeeeeeeeeeeeeeeeee.
4. satır bu şekilde
x. abcde.
y. eeeeeeeeeeeeeeeeeeee.