Ben php (basit görevler için sadece bazı kopyalama / yapıştırma) regex herhangi bir diyolog yok o yüzden basit situatio 'çözmek' olamaz, ve ben somone yardımcı olabilir umuyoruz.
Ben benzeyen bir lage dosyaları var:
xxxxxxxxxxxxxx
xxxxxxxxxxxxxxx
xxxxxxxxxxxxxx
text,text,text,
text,text,tec,etc
Now i need in php to write function where passed string with content like this will return me part that I marked here as 'xxx...' After every 'xxxx...' sequence at file begin, I have as you can see new line (\r\n) and I don't know how to use regex to to cut upper part into another string, so please help.