Skip to content

Commit 45b3d77

Browse files
authored
Correct * to + in reg ex
The + sign dot point actually shows the * instead of the + hence it should say "For example, ab+c matches "abc", "abbbc" but not "ac"."
1 parent 9a055d5 commit 45b3d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

episodes/04-regular-expressions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ So, what is `^[Oo]rgani.e\b` going to match.
6868
Other useful special characters are:
6969
7070
- `*` matches the preceding element zero or more times. For example, ab*c matches "ac", "abc", "abbbc", etc.
71-
- `+` matches the preceding element one or more times. For example, ab*c matches "abc", "abbbc" but not "ac".
71+
- `+` matches the preceding element one or more times. For example, ab+c matches "abc", "abbbc" but not "ac".
7272
- `?` matches when the preceding character appears zero or one time.
7373
- `{VALUE}` matches the preceding character the number of times define by VALUE; ranges can be specified with the syntax `{VALUE,VALUE}`
7474
- `|` means or.

0 commit comments

Comments
 (0)