From 62527123638ba5ac9e707e0fbcdeb9e9e56b9c31 Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Sun, 4 Aug 2024 13:21:13 -0400 Subject: [PATCH] Add missing features to `regex` package documentation --- core/text/regex/doc.odin | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/text/regex/doc.odin b/core/text/regex/doc.odin index 8899e1af6..7b28bbc3d 100644 --- a/core/text/regex/doc.odin +++ b/core/text/regex/doc.odin @@ -9,12 +9,16 @@ Odin's regex library implements the following features: Alternation: `apple|cherry` Classes: `[0-9_]` + Classes, negated: `[^0-9_]` + Shorthands: `\d\s\w` + Shorthands, negated: `\D\S\W` Wildcards: `.` Repeat, optional: `a*` Repeat, at least once: `a+` + Repetition: `a{1,2}` Optional: `a?` - Group Capture: `([0-9])` - Group Non-Capture: `(?:[0-9])` + Group, capture: `([0-9])` + Group, non-capture: `(?:[0-9])` Start & End Anchors: `^hello$` Word Boundaries: `\bhello\b` Non-Word Boundaries: `hello\B`