Posted by Colin McKinnon on 05/20/06 17:24
a@b.com wrote:
> I'm a newbie needing to use some Regular Expressions in PHP.
>
And they are definitely worth learning.
> Can I safely use the results of my tests using 'The Regex Coach'
> (http://www.weitz.de/regex-coach/index.html)
>
hmmm, don't know.
> Are the Regular Expressions used in Perl identical to the Regular
> Expressions in PHP?
PHP has two different RE extensions - Posix and Perl compatible (PCRE). The
'Regex Coach' seems to work with the latter. They are very similar up to a
point. I've gone over to using POSIX RE's almost exclusively as Javascript
RE's works with the same syntax. The Wikipedia page on regular expressions
has some links to tools for playing with RE's in javascript.
HTH
C.
Navigation:
[Reply to this message]
|