Skip to content

Instantly share code, notes, and snippets.

@emersonmx
Last active April 30, 2020 13:06
Show Gist options
  • Save emersonmx/96ca0b7a66ceceddf5ea1628f60e16f5 to your computer and use it in GitHub Desktop.
Save emersonmx/96ca0b7a66ceceddf5ea1628f60e16f5 to your computer and use it in GitHub Desktop.

Expressões regulares

Expressões regulares que normalmente uso.

Preço

^(\d{1,3}(\.\d{3})*,\d{2}|\d{1,2})$

Essa expressão captura o formato dos campos de preços. Ex.: 1.000.000,00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment