[PHP] Regular expressions (regex) question for parsing

2008-12-22 Thread Rene Fournier
Hi, I'm looking for some ideas on the best way to parse blocks of text that is formatted such as: $sometext %\r\n -- good data $otherstring %\r\n -- good data $andyetmoretext %\r\n

Re: [PHP] Regular expressions (regex) question for parsing

2008-12-22 Thread Daniel Brown
On Mon, Dec 22, 2008 at 15:56, Rene Fournier renefourn...@gmail.com wrote: Each line should start with a $dollar sign, then some arbitrary text, ends with a percent sign, followed by carriage-return and line-feed. Sometimes though, the final line is not complete. In that case, I want to save

Re: [PHP] Regular expressions (regex) question for parsing

2008-12-22 Thread Jim Lucas
Rene Fournier wrote: Hi, I'm looking for some ideas on the best way to parse blocks of text that is formatted such as: $sometext %\r\n-- good data $otherstring %\r\n-- good data $andyetmoretext %\r\n-- good data

Re: [PHP] Regular expressions (regex) question for parsing

2008-12-22 Thread Lars Torben Wilson
2008/12/22 Jim Lucas li...@cmsws.com: Rene Fournier wrote: Hi, I'm looking for some ideas on the best way to parse blocks of text that is formatted such as: $sometext %\r\n-- good data $otherstring %\r\n-- good data $andyetmoretext %\r\n