Skip to content

Commit

Permalink
Regex: add \b to search, as regex depreciated → <|w>
Browse files Browse the repository at this point in the history
Will allow users of other languages to look it up by searching
for this.
  • Loading branch information
samcv committed Dec 18, 2016
1 parent 6259779 commit 92f3c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/Language/regexes.pod6
Expand Up @@ -555,7 +555,7 @@ character to the right.
C<<< >> >>> matches a right word boundary: it matches positions where there
is a word character at the left and a non-word character at the right (or
the end of the string). If you want to match any word boundary you can use
C«<|w>»
C«<|w>». This is similar to other languages X«C<\b>|regex depreciated,\b».
my $str = 'The quick brown fox';
say so $str ~~ /br/; # True
Expand Down

0 comments on commit 92f3c08

Please sign in to comment.