Common regular expression

Mailbox

[email protected] Only English letters, numbers, underscores, full stops, and underscores are allowed

^[a-zA-Z0-9_-][emailprotected ][a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$

高子航[email protected] Chinese characters are allowed in the name, Letters, numbers, domain names only allow English domain names

^[A-Za -z0-9\u4e00-\u9fa5][email protected][a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$

Phone

< span>13012345678 phone number

^1(3|4|5|6|7|8|9)\d{9}$

XXX-XXXXXXX < code>XXXX-XXXXXXXX Fixed telephone

(\(\d{3,4}\)|\d{3,4}-|\s)?\d{8} 

domain name< /span>

https://google.com/

^((http:\/\/)|(https:\/\/))?([a-zA-Z0 -9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}(\/ )

IP

127.0.0.1

((?:(?:25[0-5]|2[0-4]\d|[01]?\ d?\d)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d?\d))

< p clas s="md-end-block md-p">

Account verification< /h2>

gaozihang_001 beginning with a letter, allowing 5-16 bytes, allowing Alphanumeric underline

^[a-zA-Z][a- zA-Z0-9_]{4,15}$

Character check span>

Chinese characters

Gao Zihang

^[ \u4e00-\u9fa5]{0,}$

English and numbers

^[ A-Za-z0-9]+$

all characters with a length of 3-20

^.{3,20}$

English characters

a string of 26 English letters

 ^[A-Za-z]+$

a string of 26 uppercase English letters

^[AZ]+$

a string of 26 lowercase English letters

^[az]+$

a string of numbers and 26 English letters

^[A-Za-z0-9]+$ 

From the number, 26 A string of English letters or underscores

^\w+$< /pre> 

Chinese, English , Numbers include underscores

^[\u4E00-\u9FA5A-Za-z0-9_] +$

Chinese, English, numbers but excluding symbols such as underscores

^[\ u4E00-\u9FA5A-Za-z0-9]+$

It is forbidden to enter characters containing %&',;=?$"

[^%&',;=?$\x22]+ 

Do not enter characters containing ~

[^~\x22]+

Number Regular

Integer< /span>

^-?[1-9]\d*$

positive integer

^[1-9]\d*$

negative integer

^-[1-9]\d*$

Non-negative integer

< pre class="md-fences md-end-block ty-contain-cm modeLo aded">^[1-9]\d*|0$

Non-positive integer

^-[1-9]\d*|0$

floating point

^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$

positive Floating point

^[1-9]\d*\.\d*|0 \.\d*[1-9]\d*$

negative floating point

^-([1-9]\d*\.\d*|0\.\d*[1-9]\d*)$

Non-negative floating point numbers

^[1-9] \d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0$

non-positive floating point

^(-([1-9]\d*\.\d*|0\.\d*[1-9] \d*))|0?\.0+|0$
?

evi < /div>

/div>

<hr>

​​

Online regular test:

https://oktools.net/regex

Reprinted source:

https://github.com/cdoco/common- regex

?

?

​ < /div>

 <hr>

​​

online regular Test:

https://oktools.net/regex

Reprinted source:

https://github.com/cdoco/common-regex
?

< hr>

​​

Online regular test:

https://oktools.net/regex

Reprinted source:

https://github.com/cdoco/common-regex

< /div>

< div class="CodeMirror-scroll">

<hr>

​​

Online regular test:

https://oktools.net/regex

Reprint source:

https://github.com/cdoco/common-regex

<hr>

< /div>

​​
/div>

Online regular test:

https://oktools.net/regex

Reprinted source:

https ://github.com/cdoco/common-regex

<hr>

​​

Online regular test:

https://oktools.net/regex

div>

Reprinted source:

https://github.com/cdoco/common-regex

div>

<hr>

​​

Online regular test:

https://oktools.net/regex

Reprinted source:

https://github.com/cdoco/co mmon-regex

<hr> span>

​​

Online regular test:

https://oktools.net/ regex

Reprint source:

https://github.com/cdoco/common-regex

< /p>

<hr>< /span>

​​

Online regular test:

https:/ /oktools.net/regex

Reprinted source:

https://github.com/cdoco/common-regex

<hr>< /span>

​​

Online regular test:

https://oktools.net/regex

Reprinted source:

https://github.com/cdoco/common-regex

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5410 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.