|
Posted by usenet+2004 on 09/28/91 11:59
Puzzled:
> usenet+2004@john.dunlop.name wrote:
>
> >If your lines end in CR LF, as your tests suggest, then /\n{2}/ would
> >not match EOL.
> >
> >Match CR LF with /\r\n/.
>
> Thanks for the response. So you're saying that php's perl lib doesn't
> handle it,
?? No, I'm not saying that.
> and I need to do a pre-processing pass on the buffer to
> convert the DOS EOLs myself?
Your problem as originally specified - to find two EOL tokens, whatever
you really mean by that - is solved by determining how your lines
(begin and) end (\r, \n, \r\n or some other way) and matching that in
your regular expression.
--
Jock
Navigation:
[Reply to this message]
|