Skip to content

Commit ce2b784

Browse files
committed
Update docs
1 parent 1d258b0 commit ce2b784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ if (Preg::matchStrictGroups('{fo+}', $string, $matches))
9191
if (Preg::matchAllStrictGroups('{fo+}', $string, $matches))
9292
```
9393

94-
**Note:** This is generally safe to use as long as you do not have optional subpatterns (i.e. `(something)?`).
94+
**Note:** This is generally safe to use as long as you do not have optional subpatterns (i.e. `(something)?` or `(something)*`).
9595
A subpattern that can match an empty string like `(.*)` is **not** optional, it will be present as an
9696
empty string in the matches. A non-matching subpattern, even if optional like `(?:foo)?` will anyway not be present in
9797
matches so it is also not a problem to use these with `*StrictGroups` methods.

0 commit comments

Comments
 (0)