Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 13,880 community submitted regex patterns...
0
^[0-9]{10,11}|2[0-9]{3,3}-(0[1-9]|[1][0-2])-(0[1-9]|[1-2][0-9]|3[0-1])
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Names
PCRE (PHP <7.3)
For US names
Submitted by
anonymous
-
8 years ago
0
ip
Python
ip-adreese
Submitted by
anonymous
-
8 years ago
0
Xml Parser!
PCRE (PHP <7.3)
Captures TagName, attributes and value in seperate groups. --- Apply same pattern on capture group #3 (using recursion) to parse entire xml! --- Apply regex defined in teststring to capture group #2 to parse all the attributes for the current tag.
Submitted by
veryanonymous
-
8 years ago
0
message postcode
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Oktavian regex [1]
PCRE (PHP <7.3)
trans replace
Submitted by
Oktavian Master
-
8 years ago
0
Regex to match lines having string1 and not having string3
PCRE (PHP <7.3)
no description available
Submitted by
Vivek Shah
-
8 years ago
0
IP adress or masks
PCRE (PHP <7.3)
Match any IP adress or Subnet masks and split all bytes in capture groups
Submitted by
SkullPand4
-
8 years ago
0
IPv4 addresses that don't match RFC1918
PCRE (PHP <7.3)
Matches publicly available IPv4 addresses (excludes 10., 172.16-32, and 192.168 blocks).
Submitted by
anonymous
-
8 years ago
0
Validates argentinian telephone numbers
Python
To validate a number with this regular expression is mandatory to have the number group with only digits. You can modify the number group to accept spaces, hyphens, and dots with something like this: (?P[\d\-\.]+). Valid examples +54 9 11 50165564 54 2268 201232 15 50165564...
Submitted by
Agustín Bouillet
-
8 years ago
0
Test N°1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Newline matcher
Python
new line matcher
Submitted by
anonymous
-
8 years ago
0
RegEx strings used to get latitude and longitude are :- data-longitud
PCRE (PHP <7.3)
RegEx strings used to get latitude and longitude are :- data-longitude="(*) data-latitude="(*)
Submitted by
grtr
-
8 years ago
0
[ ] delimiter matching
PCRE (PHP <7.3)
af
Submitted by
me
-
8 years ago
0
Find Whole CaMeL Words
PCRE (PHP <7.3)
The PCRE (or any regex flavor supporting word boundaries, Unicode properties and lookaheads) \b(?!\p{Lu}+\b)(?=\p{L}\p{Ll})(?=\p{L}\p{Lu})(?!\p{Lu}\p{Ll}*\b)\p{L}+\b regex finds CaMeL words that: Have at least 1 lowercase letter Have at least 1 uppercase letter Do not follow the X, XXX or Xxxx p...
Submitted by
Wiktor Stribiżew
-
8 years ago
0
Equidé
PCRE (PHP <7.3)
no description available
Submitted by
Carl
-
8 years ago
0
fraction
Python
mixed or simple fraction with whitespace, optional dash as separator
Submitted by
anonymous
-
8 years ago
0
Valid UK postcode check
Python
Rather long, but pretty accurate, matches on BS7666 alpha num pattern. https://en.wikipedia.org/wiki/Postal_code#UK
Submitted by
anonymous
-
8 years ago
0
phone number spain
PCRE (PHP <7.3)
^(0034|\+34)?(\d\d\d)-? ?(\d\d)-? ?(\d)-? ?(\d)-? ?(\d\d)$
Submitted by
elPatxificador
-
8 years ago
1
...
451
452
453
454
455
...
694
expression 1
1
Regular Expression
PCRE (PHP <7.3)
/
(
\d
+
)
\s
+
(
(?:
[
A
-
Za
-
zA
-
Z0
-
9
]
{0,3}
)+
)
\s
+
(
(?:
[
A
-
Za
-
z0
-
9
\)\(\]\:\/
<>
\[\"\.\,\+\'\-
]
{2,}
?
)+
)
\s
+
(
\d
{2,7}
-
\d
{2}
-
\d
)
/
g
Open regex in editor
Description
grab phase/chem formula/chem name/CAS
Submitted by
anonymous
-
8 years ago