Skip Menu |

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

Report information
The Basics
Id: 107526
Status: open
Priority: 0/
Queue: Regexp-Debugger

People
Owner: Nobody in particular
Requestors: andreas.guldstrand [...] gmail.com
Cc:
AdminCc:

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



Subject: Pattern with \# and /x leads to error Invalid regex: /x
Date: Sun, 4 Oct 2015 01:13:50 +0200
To: bug-Regexp-Debugger [...] rt.cpan.org
From: Andreas Guldstrand <andreas.guldstrand [...] gmail.com>
When you give `rxrx` a pattern that has an escaped # and try to supply the /x flag, you get an error message saying: regex: /Invalid regex: /x Try with input: / \# /x This obviously should parse properly, but even so, "/x" is in fact a valid regex since you don't need the closing "/" in `rxrx`.
Subject: Re: [rt.cpan.org #107526] Pattern with \# and /x leads to error Invalid regex: /x
Date: Fri, 9 Oct 2015 00:46:50 +1100
To: bug-Regexp-Debugger [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Hi Andreas, Thanks for the report. The error only occurs in Perl 5.18 and later. It is caused by changes in the way Perl parses regexes from 5.18 onwards. It is not clear that there is any way I can work around this behaviour. I will continue to work on the problem, however. Sorry not to be able to solve it immediately, Damian