in reply to Regular Expressions Resource

When I did some past PHP programming I had used a bit of Regular Expressions". Are they they same between Perl and PHP?

Replies are listed 'Best First'.
Re^2: Regular Expressions Resource
by ikegami (Patriarch) on Feb 23, 2008 at 22:23 UTC

    I think PHP uses pcre, which I think is a subset of Perl regexps. At the very least, they'd be similar. You can double check for differences in perlre.

    Also, there's a bunch of Regexp::Common::... modules for commonly used regexps on CPAN.