Regexp::Common isn't really a go-to for debugging. I guess what I meant to convey was that if I have a Regexp::Common call that isn't matching as I expected and want to see what the pattern looks like, that's an easy way to dump it (diving into the source can be opaque if all you want is to see what the pattern looks like).

For debugging patterns, I really like Regexp::Debugger. It allows you to step through the match and watch what's happening.

You are correct that YAPE::Regex::Explain is outdated. The main problem is that the last time I checked, it stopped being developed during Perl 5.6's reign, and consequently doesn't know about features that were added to Perl after 5.6. Since Perl 5.6 is now 14 years in the past, it would seem that YAPE::Regex::Explain has been left behind. In fact, after 2001 nothing new happened to the module until 2010, and that flurry of activity (two releases) was just for bugfixes and documentation enhancements. One of the doc enhancements was to explicitly state that only regexes using constructs that were in 5.6 are supported. It's useful to those starting out trying to learn regexp basics, but it doesn't take long to discover newer constructs that fool it.


Dave


In reply to Re^3: Regex: What does ?k: mean? by davido
in thread Regex: What does ?k: mean? by hoppfrosch

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.