Documentation for regex
<|w> assembled from the following types:
To match any word boundary, use
<?wb>. This is similar to
\b in other languages. To match the opposite, any character that is not bounding a word, use
<!wb>. This is similar to
\B in other languages.
These are both zero-width regex elements.
say "two-words" ~~ / two\-words /; # OUTPUT: «｢two-words｣␤»say "twowords" ~~ / twowords /; # OUTPUT: «｢twowords｣»