mirror of
https://github.com/ziishaned/learn-regex.git
synced 2025-08-22 11:26:26 -04:00
The [a-z]* does not match *The*, just *he* (#8)
This commit is contained in:
parent
e663c9fac6
commit
0356005d11
@ -139,7 +139,7 @@ of preceding lowercase character `a`. But if it appears after a character set or
|
||||
character set. For example the regular expression `[a-z]*` means: any number of lowercase letters in a row.
|
||||
|
||||
<pre>
|
||||
"[a-z]*" => <a href="#learn-regex"><strong>The</strong></a> <a href="#learn-regex"><strong>car</strong></a> <a href="#learn-regex"><strong>parked</strong></a> <a href="#learn-regex"><strong>in</strong></a> <a href="#learn-regex"><strong>the</strong></a> <a href="#learn-regex"><strong>garage</strong></a> #21.
|
||||
"[a-z]*" => T<a href="#learn-regex"><strong>he</strong></a> <a href="#learn-regex"><strong>car</strong></a> <a href="#learn-regex"><strong>parked</strong></a> <a href="#learn-regex"><strong>in</strong></a> <a href="#learn-regex"><strong>the</strong></a> <a href="#learn-regex"><strong>garage</strong></a> #21.
|
||||
</pre>
|
||||
|
||||
The `*` symbol can be used with the meta character `.` to match any string of characters `.*`. The `*` symbol can be used with the
|
||||
|
Loading…
x
Reference in New Issue
Block a user