in reply to Re: regex catch pattern that doesn't contain a pattern
in thread regex catch pattern that doesn't contain a pattern

I agree that the OPed regex will match and capture the first empty string it finds (i.e., the one at the beginning of the string), but is YAPE::Regex::Explain at all valid for constructs such as  (?<NAME>pattern) introduced with Perl version 5.10?


Give a man a fish:  <%-(-(-(-<

Replies are listed 'Best First'.
Re^3: regex catch pattern that doesn't contain a pattern
by toolic (Bishop) on Apr 29, 2015 at 18:08 UTC
    but is YAPE::Regex::Explain at all valid for constructs such as (?<NAME>pattern) introduced with Perl version 5.10?
    Nope. According to the POD (LIMITATIONS):
    There is no support for regular expression syntax added after Perl version 5.6, particularly any constructs added in 5.10.

    But, it is valid for .*?

      But the  .*? is wrapped in a  (?<start>.*?) Is something like that explained reliably in all cases?


      Give a man a fish:  <%-(-(-(-<