Greetings All!
Once again I find myself trying to figure out the proper preg syntax.
Today my problem is that I have a file that has several lines with $boundary in it.
The trouble is, sometimes the program that creates this file sticks a couple of extra characters on the same line... before and/or after the text that makes up $boundary.
What I need to do is to chop the file apart wherever that line occurs.
My most recent attempt has been:
$chunks=preg_split("/.$boundary.$/",$whole_thing);
Where $whole_thing is the multi-line string of text. Like I said, my goal here was to say "chop wherever you see a line with $boundary somewhere in it".
What's the correct syntax ?
Thanks!
-= Dave =-