mirror of
https://github.com/ziishaned/learn-regex.git
synced 2025-09-29 07:10:37 -04:00
Error in example. {2} =/= {2,3}
This commit is contained in:
parent
b401be1793
commit
aa7b00c258
@ -180,7 +180,7 @@ character can be repeated. For example the regular expression `[0-9]{2,3}` means
|
||||
characters in the range of 0 to 9).
|
||||
|
||||
<pre>
|
||||
"[0-9]{2}" => The number was 9.<a href="#learn-regex"><strong>999</strong></a>7 but we rounded it off to <a href="#learn-regex"><strong>10</strong></a>.0.
|
||||
"[0-9]{2,3}" => The number was 9.<a href="#learn-regex"><strong>999</strong></a>7 but we rounded it off to <a href="#learn-regex"><strong>10</strong></a>.0.
|
||||
</pre>
|
||||
|
||||
We can leave out the second number. For example the regular expression `[0-9]{2,}` means: Match 2 or more digits. If we also remove
|
||||
@ -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