Created
January 16, 2018 11:26
-
-
Save PepDevils/6fe9ae5286203cb394cea100bf36d7c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
links importantes: | |
https://www.regular-expressions.info/numericranges.html | |
https://www.regular-expressions.info/examples.html | |
https://www.icewarp.com/support/online_help/203030104.htm | |
https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/db2/rbafzregexp_like.htm | |
exemplos: | |
validar numeros inteiros no intervalo de 0 a 9: | |
\b([0-9])\b | |
validar numeros inteiros no intervalo de 0 a 99: | |
\b([0-9]|[1-9][0-9])\b | |
validar numeros inteiros no intervalo de 0 a 199: | |
\b([0-9]|[1-9][0-9]|1[0-9][0-9])\b | |
validar numeros inteiros no intervalo de 1 a 200: | |
\b([1-9]|[1-9][0-9]|1[0-9][0-9]|200)\b | |
validar numeros inteiros no intervalo de 0 a 200: | |
\b([0-9]|[1-9][0-9]|1[0-9][0-9]|200)\b | |
validar numeros inteiros no intervalo de 0 a 249: | |
\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9])\b | |
validar numeros inteiros no intervalo de 0 a 250: | |
\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|250)\b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment