Jesse Houwing <[EMAIL PROTECTED]> writes:
> Kevin Peuhkurinen wrote:
>
>> The '.' character matchs anything other than newlines. I think
>> you may need to replace it with something like '[.|\n]' which should
>> match either any character other than newline OR a newline.
>>
> If I'm not mistaking /regex/im will let . match newlines.
>From perlre manual (perldoc perlre or man perlre):
m Treat string as multiple lines. That is, change "^" and "$" from
matching the start or end of the string to matching the start or
end of any line anywhere within the string.
s Treat string as single line. That is, change "." to match any
character whatsoever, even a newline, which normally it would not
match.
--
Email: [EMAIL PROTECTED]