Skip to content

Commit

Permalink
chore(book): note about capture groupes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Jun 25, 2023
1 parent 4388371 commit 671be13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions book/src/common-regex.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ the following
+ Word boundaries, i.e., r`"\b"`.
+ Anchors, because input source does not treat lines separately.

Additionally, note that capture groups will silently be *ungrouped*,
because **Logos** does not support capturing groups, but the main slice
(`lex.slice()`).

[^1]: Most of time, however, it is possible to circumvent this issue by
rewriting your regex another way, or by using callbacks.
E.g., see
Expand Down

0 comments on commit 671be13

Please sign in to comment.