Reply to Re: the perl regexp routines don't decode \n?

Your name:

Reply:


Posted by usenet+2004 on 11/11/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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация