in reply to Re: Regex explanation
in thread Regex explanation

YAPE::Regex::Explain doesn't handle substitutions, it can only explain regular expressions. Substitution is a regular expression plus pattern to replace the matching part, the pattern usually works as double quoted string (unless /e is involved).
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^3: Regex explanation
by Discipulus (Canon) on Sep 14, 2015 at 11:04 UTC
    yes, you are right choroba and in fact in the explanation given there is no mention of the substitution. Anyway it handles correctly the interesting part and also in this case helps a lot in spotting the wrong part.

    L*
    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
      ... it handles correctly the interesting part ...

      But it handles the incorrect part in a confusing and misleading way.

      ... and ... helps a lot in spotting the wrong part.

      Whether it helps "a lot" or at all is open to question. But why not just fix the wrong part? Please see How do I change/delete my post?. (Of course, I'm suggesting changing your reply, not deleting it!) Perhaps also mention that YAPE::Regex::Explain only supports regex features added through Perl version 5.6.


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

Re^3: Regex explanation
by Anonymous Monk on Sep 15, 2015 at 03:42 UTC