Subject: | Regex::Assemble die with posix classes |
Date: | Thu, 5 Jun 2008 09:51:17 +0200 |
To: | bug-Regexp-Assemble [...] rt.cpan.org |
From: | "Yves BLUSSEAU" <cbw3qq202 [...] sneakemail.com> |
Hi,
Regexp::Assemble seems to not like the posix classes.
Here the program:
use strict;
use Regexp::Assemble;
my $ra = Regexp::Assemble->new;
$ra->add('x[[:alpha:]]y');
print $ra->re,$/;
If you execute this code it's die with the error:
Unmatched [ in regex; marked by <-- HERE in m/a\|b[ <-- HERE [:alpha:]\]\|c/ at /usr/local/share/perl/5.8.8/Regexp/Assemble.pm line 1005.
Regards