You are here: Re: Regular expression example on PHP.net « PHP Programming Language « IT news, forums, messages
Re: Regular expression example on PHP.net

Posted by Zenofobe on 09/08/07 01:53

gosha bine <stereofrog@gmail.com> wrote in news:46e11e53$0$31118
$6e1ede2f@read.cnntp.org:

> On 07.09.2007 09:56 Rik Wasmus wrote:
>
>> ([^\2]+) #match one or more characters in match 3 that are NOT
>> in match 2
>
> [^\2] doesn't mean "negate group 2" as you and the manual people seem to
> think. It means "any character except that with ascii code 2".

Thanks for your help, guys.

This seems strange to me though, why bother matching anything but STX? Is
STX actually used by anything anywhere? Googling seems to indicate that
this is something that printers use, not very useful when parsing HTTP.

--
Posted via a free Usenet account from http://www.teranews.com

 

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

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