Regular Expressions 101

Community Patterns

1

xxx-xxx-xxxx

ECMAScript (JavaScript)
☎️
Submitted by codefinity - 3 years ago
0

Email

ECMAScript (JavaScript)
to validate email
Submitted by anonymous - 3 years ago
0

Frac

Python
frac
Submitted by anonymous - 3 years ago
0

Date2 (Notes)

PCRE (PHP <7.3)
Date2 (Notes)
Submitted by anonymous - 3 years ago

name (paragraph)

0

Regular Expression
Python

r"
(?:[^\n]+)?(?:\b(?:(?!\bCPF\b))(?:(?!\bCNPJ\b))(?:(?!\bCNH\b))(?:(?!\bRG\b))(?:[A-Z\u00C0-\u00DC][A--ÿ']+\s(?:(?:(?:[A--ÿ']{1,3}\s)?(?:(?:(?!\bCPF\b))(?:(?!\bCNPJ\b))(?:(?!\bCNH\b))(?:(?!\bRG\b))[A--Ÿ][A--ÿ']*\s?))+))\b(?:(?:[^\n](?:.+?\n)|(?:.+?\Z))))
"
g

Description

Loading markdown...
Submitted by anonymous - 3 years ago
(Last modified 3 years ago)