Skip Menu |

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

Report information
The Basics
Id: 80125
Status: resolved
Priority: 0/
Queue: Regexp-Debugger

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

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



Subject: false 'failed'
Hello, I'm sorry I'm not good at English. At first, thank you very much for this fantastic module. When I tested this matching: my $str = '"hello \"baby\""'; print "match\n" if ( $str =~ /"(?:[^"\\]++|\\.)*+"/ ); (this regexp is an example of possessive quantifier in perlretut document) It succeeds matching and prints "match\n". However, with Regexp::Debugger or rxrx, it says "Regex failed to match" Here is event log: "hello \"baby\" | "(?:[^"\\]++|\\ | Starting regex match hello \"baby\"" | (?:[^"\\]++|\\. | Starting non-capturing group hello \"baby\"" | |\\.)*+" | Trying next alternative (It should try the first alternative but it seems to skip it.) hello \"baby\"" | \\.)*+" | Trying an escaped literal hello \"baby\"" | \\.)*+" | Failed | <~~~~~~~~~~~~~ | Back-tracking in regex (omit) | <~~~~~~~~~~~~~ | Back-tracking in regex | "(?:[^"\\]++|\\ | Back-tracked and restarting regex match | | Regex failed to match after 39 steps I changed the regexp into /"(?:[^\\"]++|\\.)*+"/. (swapped \\ and " in the character class) And then the module said "Regex matched", as expected. Would you please check it? Thank you. Geunyoung Park from South Korea.
Subject: Re: [rt.cpan.org #80125] false 'failed'
Date: Thu, 11 Oct 2012 19:26:47 +0100
To: bug-Regexp-Debugger [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Hello, Show quoted text
> I'm sorry I'm not good at English.
Your English seems better. Vastly better than my Korean! ;-) Show quoted text
> At first, thank you very much for this fantastic module.
You are most welcome. Thank-you for the important bug report. It was indeed an error in the module. I believe I have now fixed it. I've uploaded a new release (v0.001011) to CPAN. If you wait a short while for it to propagate, you will be able to download the new version, which definitely fixes the problem you reported. I deeply appreciate your feedback and your help in making Regexp::Debugger even better. All the very best, Damian