All Projects → diogomachado → regex-comuns

diogomachado / regex-comuns

Licence: other
Um estudo de regex comuns

Projects that are alternatives of or similar to regex-comuns

Grex
A command-line tool and library for generating regular expressions from user-provided test cases
Stars: ✭ 4,847 (+32213.33%)
Mutual labels:  regex, regular-expression, regex-pattern
RgxGen
Regex: generate matching and non matching strings based on regex pattern.
Stars: ✭ 45 (+200%)
Mutual labels:  regex, regular-expression, regex-pattern
moar
Deterministic Regular Expressions with Backreferences
Stars: ✭ 19 (+26.67%)
Mutual labels:  regex, regular-expression, regex-pattern
Emoji Regex
A regular expression to match all Emoji-only symbols as per the Unicode Standard.
Stars: ✭ 1,134 (+7460%)
Mutual labels:  regex, regular-expression
Regex
A sane interface for php's built in preg_* functions
Stars: ✭ 909 (+5960%)
Mutual labels:  regex, regular-expression
Rexrex
🦖 Composable JavaScript regular expressions
Stars: ✭ 34 (+126.67%)
Mutual labels:  regex, regular-expression
Guitar
A Cross-Platform String and Regular Expression Library written in Swift.
Stars: ✭ 641 (+4173.33%)
Mutual labels:  regex, regular-expression
To Regex Range
Pass two numbers, get a regex-compatible source string for matching ranges. Fast compiler, optimized regex, and validated against more than 2.78 million test assertions. Useful for creating regular expressions to validate numbers, ranges, years, etc.
Stars: ✭ 97 (+546.67%)
Mutual labels:  regex, regular-expression
Hyperscan Java
Match tens of thousands of regular expressions within milliseconds - Java bindings for Intel's hyperscan 5
Stars: ✭ 66 (+340%)
Mutual labels:  regex, regular-expression
Orchestra
One language to be RegExp's Successor. Visually readable and rich, technically safe and extended, naturally scalable, advanced, and optimized
Stars: ✭ 103 (+586.67%)
Mutual labels:  regex, regular-expression
Micromatch
Contributing Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. Please read the contributing guide for advice on opening issues, pull requests, and coding standards.
Stars: ✭ 1,979 (+13093.33%)
Mutual labels:  regex, regular-expression
Regex Dos
👮 👊 RegEx Denial of Service (ReDos) Scanner
Stars: ✭ 143 (+853.33%)
Mutual labels:  regex, regular-expression
Whitespace Regex
Regular expression for matching the whitespace in a string.
Stars: ✭ 9 (-40%)
Mutual labels:  regex, regular-expression
Shallow Clone
Make a shallow clone of an object, array or primitive.
Stars: ✭ 23 (+53.33%)
Mutual labels:  regex, regular-expression
Regexr
For composing regular expressions without the need for double-escaping inside strings.
Stars: ✭ 53 (+253.33%)
Mutual labels:  regex, regular-expression
Commonregex
🍫 A collection of common regular expressions for Go
Stars: ✭ 733 (+4786.67%)
Mutual labels:  regex, regular-expression
Globbing
Introduction to "globbing" or glob matching, a programming concept that allows "filepath expansion" and matching using wildcards.
Stars: ✭ 86 (+473.33%)
Mutual labels:  regex, regular-expression
Regexpu
A source code transpiler that enables the use of ES2015 Unicode regular expressions in ES5.
Stars: ✭ 201 (+1240%)
Mutual labels:  regex, regular-expression
Regulex
🚧 Regular Expression Excited!
Stars: ✭ 4,877 (+32413.33%)
Mutual labels:  regex, regular-expression
Onigmo
Onigmo is a regular expressions library forked from Oniguruma.
Stars: ✭ 536 (+3473.33%)
Mutual labels:  regex, regular-expression

Expressões regulares

Expressões regulares podem salvar sua vida!

E-mail

  • Regex valida se é e-mail
  • Valida se tem domínio
  • Valida se tem subdomínio
[\w\.]+@[a-zA-Z_\-]+?\.[a-zA-Z]{2,}([\.a-zA-Z]?){3,4}

Exemplos válidos:

Data de nascimento

  • Esse regex valida o dia, indo de 01 até 31
  • Valida o mês, de 01 até 12
  • Valida o ano, de 1900 até o ano atual 2017
(0[1-9]|1[0-9]|2[0-9]|3[0-1])[/](0[1-9]|1[0-2])[/](19[0-9]{2}|20[0-7]{2})

CNPJ

([0-9]{2}[\.][0-9]{3}[\.][0-9]{3}[\/][0-9]{4}[-][0-9]{2})

CPF

([0-9]{3}[\.][0-9]{3}[\.][0-9]{3}[-][0-9]{2})

Testes

Teste as expressões no site http://www.regexpal.com/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].