Regex Tester và Generator giúp bạn kiểm tra biểu thức thông thường của bạn và tạo mã Regex cho JavaScript PHP Go Java Ruby và Python.
^[0-9]*$
^\d{n}$
^\d{n,}$
^\d{m,n}$
^(0|[1-9][0-9]*)$
^([1-9][0-9]*)+(.[0-9]{1,2})?$
^(\-)?\d+(\.\d{1,2})?$
^(\-|\+)?\d+(\.\d+)?$
^[0-9]+(.[0-9]{2})?$
^[0-9]+(.[0-9]{1,3})?$
^[1-9]\d*$ or ^([1-9][0-9]*){1,3}$ or ^\+?[1-9][0-9]*$
^\-[1-9][]0-9"*$ or ^-[1-9]\d*$
^\d+$ or ^[1-9]\d*|0$
^-[1-9]\d*|0$ or ^((-\d+)|(0+))$
^\d+(\.\d+)?$ or ^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0$
^((-\d+(\.\d+)?)|(0+(\.0+)?))$ or ^(-([1-9]\d*\.\d*|0\.\d*[1-9]\d*))|0?\.0+|0$
^[1-9]\d*\.\d*|0\.\d*[1-9]\d*$ or ^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$
^-([1-9]\d*\.\d*|0\.\d*[1-9]\d*)$ or ^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*)))$
^(-?\d+)(\.\d+)?$ or ^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$
^[A-Za-z0-9]+$ or ^[A-Za-z0-9]{4,40}$
^.{3,20}$
^[A-Za-z]+$
^[A-Z]+$
^[a-z]+$
^[A-Za-z0-9]+$
^\w+$ or ^\w{3,20}$
[^%&',;=?$\x22]+
[^~\x22]+
^[a-zA-Z0-9_.+-][email protected][a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$
^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
^(0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])[- /.](19|20)?[0-9]{2}$
^(0?[1-9]|1[0-2])$
^(0[1-9]|[12][0-9]|3[01])$
^.*(?=.{6,})(?=.*d)(?=.*[A-Z])(?=.*[a-z])(?=.*[[email protected]#$%^&*? ]).*$
\b\d{3}[-.]?\d{3}[-.]?\d{4}\b
^[0-9]{5}(?:-[0-9]{4})?$
^[a-z0-9-]+$
/[\-\[\]\/\\\{\}\(\)\*\+\?\.\^\$\|]/
^([a-zA-Z]+-?)+[a-zA-Z0-9]+\\.[x|X][m|M][l|L]$
[\u4e00-\u9fa5]
[^\x00-\xff]
\n\s*\r (be used to delete blank lines)
<(\S*?)[^>]*>.*?|<.*? />
^\s*|\s*$ or (^\s*)|(\s*$)
((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))