Skip to content

Commit

Permalink
docs(lib): improve section for empty matches
Browse files Browse the repository at this point in the history
this improvement is a consequence of the Q&A discussion from
#896
  • Loading branch information
mrl5 committed Jul 24, 2022
1 parent fc6f5cc commit 7a771ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
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 7a771ba

Please sign in to comment.