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