# New Ticket Created by  Sam S. 
# Please include the string:  [perl #128986]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128986 >


S05 <http://design.perl6.org/S05.html#line_2234> says:

    Backslash escapes for literal characters in ordinary strings are
    allowed in regexes (\a, \x, etc.). However, the exception to this
    rule is \b, which is disallowed in order to avoid conflict with
    its former use as a word boundary assertion. To match a literal
    backspace, use \c8, \x8, or a double-quoted \b.

I found out the hard way today why that second sentence was specced, when I 
puzzled over a regex of mine for several minutes before I realized that the 
reason it didn't match, was that I had written my word boundaries as `\b` 
(Perl/GNU/.NET regex syntax) instead of `<|w>` (Perl 6 regex syntax).

Reply via email to