Skip to content

Commit

Permalink
Add tip about x flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Feb 18, 2017
1 parent 204293e commit 767f80f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ assert_eq!(after, "03/14/2012, 01/01/2013 and 07/05/2014");
# }
```
If you wish to match against whitespace in this mode, you can still use `\s`,
`\n`, `\t`, etc. For escaping a single space character, you can use its hex
character code `\x20` or temporarily disable the `x` flag, e.g., `(?-x: )`.
# Example: match multiple regular expressions simultaneously
This demonstrates how to use a `RegexSet` to match multiple (possibly
Expand Down

0 comments on commit 767f80f

Please sign in to comment.