Posted by Palle Hansen on 05/05/06 13:04
vito wrote:
> I have a text file (see below please) to parse with the following code. i
> don't know why it cannot match anything. thanks.
>
>
> $matchno = preg_match_all("|.*:(.+)\n$|U", $data, $reg);
In single line mode $ will match the end of the entire text. This mode
is default. |Um will switch to multi line mode
In single line only \n is needed
In multi line only $ is needed
Navigation:
[Reply to this message]
|