Skip to content

Commit 8c92426

Browse files
committed
example for \S in regex
1 parent 2385768 commit 8c92426

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Language/regexes.pod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ matches a single character that's not a logical newline.
146146
C<\s> matches a single whitespace character. C<\S> matches a single
147147
character that is not a whitspace.
148148
149-
TODO: examples
149+
if 'contains a word starting with "w"' ~~ / w \S+ / {
150+
say ~$/; # word
151+
}
150152
151153
=item X<\t and \T|regex,\t;regex,\T>
152154

0 commit comments

Comments
 (0)