Reply to two kinds of regular expression

Your name:

Reply:


Posted by John Dunlop on 05/23/06 00:38

Andy Jeffries:

> So it would seem that while [^0-9-] works in PHP/Perl, it's actually not
> standard and I am correct to use [^0-9\-] in order to ensure maximum
> compatibility with future version which may implement the standard more
> strictly.

I'd not say you're correct, and I'd shy away from speaking about
*the* "standard", whatever you mean by that. Where there's two kinds
of regular expression, claiming that one is standard implies the other
is not, forcing upon it gratuitous negative connotations. If you do
feel the urge to think in terms of standard/non-standard, don't think
of there being one standard and one non-standard but rather of there
being two standards.

You pays your money and you takes your choice.

--
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

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