Skip Menu |

This queue is for tickets about the Regexp-Assemble CPAN distribution.

Report information
The Basics
Id: 36465
Status: resolved
Priority: 0/
Queue: Regexp-Assemble

People
Owner: dland [...] cpan.org
Requestors: cbw3qq202 [...] sneakemail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.32
Fixed in: 0.33



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
On Thu Jun 05 03:51:49 2008, cbw3qq202@sneakemail.com wrote: Show quoted text
> Hi, > > Regexp::Assemble seems to not like the posix classes.
Yep, it certainly doesn't. It's in the TODO: 7. Deal with [:punct:] et al character classes This is going to take a little bit of work to fix. Thanks, David
Hi, this has been fixed in 0.33, released on CPAN. Thanks, David