Skip Menu |

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

Report information
The Basics
Id: 105783
Status: new
Priority: 0/
Queue: Regexp-Assemble-Compressed

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.02
Fixed in: (no value)



Subject: Should the plus be escaped?
Try this program: #!/usr/bin/env perl use Regexp::Assemble::Compressed; my $r = Regexp::Assemble::Compressed->new(); $r->add('\r\n'); $r->add('\s+\n'); $r->add('\n+'); $r->add('\n\s+|\s+\n'); print $r->re(); The output is: (?^:(?:\n(?:\s+|\s+\n|\+)|(?:\s+|\r)\n)) I don't understand why the + in the string has been escaped.