We may be running afoul of differing or overlapping definitions of the meanings of words like 'advanced' and 'extended'. If 'advanced' is more or less synonomous with 'extended', then look-arounds are, as described in the quoted section of perlre, advanced anent awk- and lex-ish usage.

I think 'advanced', in this context, has more to do with words like 'complicated', 'subtle', 'non-intuitive' or 'counter-intuitive'. To me, look-arounds are pretty straightforward and intuitive (except for the fixed-width limitation of look-behinds), thus not advanced at all. I also think that look-arounds fall squarely under the 'part of the core language for many years' rubric of the quoted perlre section, and are not likely to change their behavior for the future of Perl 5.

Given that look-arounds are mature, stable and straightforward, it is well to commend regex tyros (as ultranerds seems to be) to their familiarity and use. Alternatives and multiple cat-skinning methods are fine (and I agree that the OPer is the final arbiter), but they should not obscure expressive and stable features of the language from which newcomers may benefit.

My personal experience is that pretty much all regex behavior is one or more of complicated, subtle, and non- or counter-intuitive (and that applies to the approach taken in your example code), so no expressive, stable extension should ever be shunned.


In reply to Re^4: Simple regex question by AnomalousMonk
in thread Simple regex question by ultranerds

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.