mirror of
https://github.com/ziishaned/learn-regex.git
synced 2025-09-04 01:56:26 -04:00
Update
This commit is contained in:
parent
78e39bc36f
commit
8701eba6bf
@ -10,9 +10,9 @@ Imagine you are writing an application and you want to set the rules when user c
|
|||||||
contains letter, number, underscore and hyphen. We also want to limit the number of characters in username so it does not look ugly.
|
contains letter, number, underscore and hyphen. We also want to limit the number of characters in username so it does not look ugly.
|
||||||
We use the following regular expression to validate a username:
|
We use the following regular expression to validate a username:
|
||||||
|
|
||||||
<center>
|
<p style="text-align: center;">
|
||||||

|

|
||||||
</center>
|
</p>
|
||||||
|
|
||||||
Above regular expression can accepts the strings "john_doe", "jo-hn\_doe" and "john12\_as". It does not match "Jo" because that string
|
Above regular expression can accepts the strings "john_doe", "jo-hn\_doe" and "john12\_as". It does not match "Jo" because that string
|
||||||
contains uppercase letter and also it is too short.
|
contains uppercase letter and also it is too short.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user