mirror of
https://github.com/ziishaned/learn-regex.git
synced 2025-09-26 05:41:21 -04:00
The [a-z]* does not match *The*, just *he*
This commit is contained in:
parent
b401be1793
commit
9497c48d23
@ -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
|
||||
@ -433,4 +433,4 @@ line. And beacause of `m` flag now regular expression engine matches pattern at
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Zeeshan Ahmed](mailto:ziishaned@gmail.com)
|
||||
MIT © [Zeeshan Ahmed](mailto:ziishaned@gmail.com)
|
||||
|
Loading…
x
Reference in New Issue
Block a user