afoken: I think you're right on all counts, but have not satisfied myself that I understand the implications of the discussion of 'normaliz(ation) in http://perldoc.perl.org/perlop.html#Regexp-Quote-Like-Operators.

Just BTW (and it seems to make no difference in my experiments, your Line 7 lacks the closing double-quote found in OP's datum... but I've (so far) found no docs explaining why quantification isn't required (could it be related to some aspect of normalization?).

The text and example make it clear that qr() (except when using

qr"..." delimiters) normalizes the expression -- re-orders the content +s as in your examples.</p> <p>And my attempts to requote (using <c>\"
or qq your *nix-ish one-liners have come up (badly!) short... so this is merely an interim response on those.

Clearly, I have more reading to do (but pointers are welcome)!

UPDATE: (after TWO cups) Even more clearly, coffee must be kicking in: it finally occured to me to do the nix-win translation in a file (1126143afoken-222.pl) rather than as a one-liner.

The results match yours:
|abd| matches |(?^u:a[bc]d)|: yes |acd| matches |(?^u:a[bc]d)|: yes |abcd| matches |(?^u:a[bc]d)|: no |a[bc]d| matches |(?^u:a[bc]d)|: no

But, informative pointers remain very welcome!


++$anecdote ne $data
...and that's surely a problem, so far, with this reply.

check Ln42!


In reply to Re^3: Problem with input strings that have "[]" brackets by ww
in thread Problem with input strings that have "[]" brackets by Laszlo

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.