Posted by geeker87@gmail.com on 05/18/06 03:15
Your regular expression would probably look something like this:
/^b(.+)\r/
For a line that begins with the letter 'b' is followed by one or more
'anything', ending with '\r'.
You would split the file into multiple lines with split(), then pass
each line to preg_match as $inputLine.
So you could use:
$numParts = preg_match($expression,$inputLine,$arrMatches);
Maybe theres a simpler way, I'm tired |-)
[Back to original message]
|