Skip to content

Commit 767f80f

Browse files
committed
Add tip about x flag.
Fixes #326
1 parent 204293e commit 767f80f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ assert_eq!(after, "03/14/2012, 01/01/2013 and 07/05/2014");
161161
# }
162162
```
163163
164+
If you wish to match against whitespace in this mode, you can still use `\s`,
165+
`\n`, `\t`, etc. For escaping a single space character, you can use its hex
166+
character code `\x20` or temporarily disable the `x` flag, e.g., `(?-x: )`.
167+
164168
# Example: match multiple regular expressions simultaneously
165169
166170
This demonstrates how to use a `RegexSet` to match multiple (possibly

0 commit comments

Comments
 (0)