You are here: Re: regular expression inquiry « PHP Programming Language « IT news, forums, messages
Re: regular expression inquiry

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]


Удаленная работа для программистов  •  Как заработать на 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

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