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