This article from the Good Programmer public account submission, by micro-message collection, reproduced please indicate the source.
Integer
[0-9]+
Comma-delimited integer
\b[0-9]{1,3}(,[0-9]{3})*\b
Floating point number
(\+?(\d+|\.\d+|\d+\.\d+)|-?(\d+|\d+\.\d+))
The number between 0-255
^([0-9]|[0-9]{2}|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
Id
^[1-9]\d{14}(\d{2}[0-9x])?$
Mailbox
^[-\w.]{0,64}@([a-zA-Z0-9]{1,63}\.)*[-a-zA-Z0-9]{1,63}$
Fixed telephone
(\(?0[1-9]{2,3}\)?-?)?[1-9][0-9]\{6,7}(-[0-9]{1,6})?
Zip
[1-9][0-9]{5}
Isbn
((ISBN(-13)?:?\s)?97[89][-\s]?[0-9][-\s]?[0-9]{3}[-\s]?[0-9]{5}[-\s]?[0-9]|(ISBN(-10)?:?\s)?[0-9][-\s]?[0-9]{3}[-\s]?[0-9]{5}[-\s]?[0-9x])
``
Phone number
(0|\+86)?(13[0-9]|15[0-356]|18[025-9])\d{8}
Paired HTML tag
Such as<code>test</code>
<([^>]+)>[\s\S]*?<\/\1>
A
<a\s+href\s*=\s*["‘]?([^"‘\s]+)["‘]?>([^<]+)<\/a>
Head
Image]*?src=[‘"]?([^"‘]+)["‘]?[^>]*>
Common Regular Expressions