| [reply] |
| [reply] |
| [reply] |
Since version 5.10 perl supports pluggable regex engines, and there's re::engine::PCRE on CPAN that should pretty much do what you want. | [reply] |
You must mean re::engine::POSIX or re::engine::TRE. These modules, which give you posix regular expressions got pulled from CPAN, but you can still find them on backpan. They interpret the /x re option as the regex being an extended re.
| [reply] |
In perldoc POSIX::Regex, jettero writes:
Yes, I'm aware there's special support for alternate regular expression systems in perl 5.10.x ... let me know when people are done with perl 5.6 and 5.8 and I'll delete this from CPAN. Thanks.
I'm assuming that is a reference to re::engine::.* packages on CPAN that got pulled. But I've never heard of backpan before this.
I would like to move forward in a way least likely to cause problems in the future. re::engine::.* seems to provide the cleanest syntax, but until I know better I prefer CPAN to "backpan" packages.
I don't know why they got pulled from CPAN. Does anyone why that happened? Which would you use: POSIX::Regex from CPAN or re::engine::POSIX from backpan?
| [reply] |
"abc" =~ /.|../ && print $&;
Prints 'a' with Perl, but a POSIX style regexp engine would result in 'ab' being printed. With POSIX style, "longest" trumps "leftmost". | [reply] [d/l] |
Thanks for your reply, but as I said in my original post: "MySQL doesn't use Perl compatible regular expressions"
| [reply] |