Skip to content

Commit

Permalink
doc: add a note about the empty regex
Browse files Browse the repository at this point in the history
This improvement is a consequence of the Q&A discussion from
#896

PR #897
  • Loading branch information
mrl5 committed Jul 26, 2022
1 parent fc6f5cc commit 159a63c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Expand Up @@ -353,6 +353,9 @@ $ the end of text (or end-of-line with multi-line mode)
\B not a Unicode word boundary
</pre>
The empty regex is valid and matches the empty string. For example, the empty
regex matches `abc` at positions `0`, `1`, `2` and `3`.
## Grouping and flags
<pre class="rust">
Expand Down

0 comments on commit 159a63c

Please sign in to comment.