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
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,040 community submitted regex patterns...
1
look ahead and look behind
ECMAScript (JavaScript)
find number in string with look behind and look ahead
Submitted by
anonymous
-
5 years ago
1
Python:Match paragraphs separated by URL
Python
no description available
Submitted by
anonymous
-
5 years ago
1
Modern Chrome User Agent
PCRE (PHP <7.3)
Detects modern Chromium-based browsers Chrome >= 67 YaBrowser >= 18.7 Opera >= 54 Samsung Internet >= 9.2...
Submitted by
slavafomin
-
5 years ago
1
Modern Firefox User Agent
PCRE (PHP <7.3)
Detects modern Firefox browser versions Firefox >= 60 These versions require only ~29.33 KB of core-js polyfills.
Submitted by
slavafomin
-
5 years ago
1
Modern Safari versions User Agent
PCRE (PHP <7.3)
Detects modern Safari versions by User Agent string Safari & iOS Safari >= 10 These browsers require ~62 KB of core-js polyfills.
Submitted by
slavafomin
-
5 years ago
1
22 Jimmy
PCRE (PHP <7.3)
.+\.{a-z}+$ / .+\.{a-z}+$...
Submitted by
anonymous
-
5 years ago
1
Replace many spaces to one
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
Another X / Extra X / X more
Python
Extract phrases meaning "add X more of the previous item"
Submitted by
anonymous
-
5 years ago
1
Wordless Date Validation
PCRE (PHP <7.3)
Validate and capture different dates without words for example: dd/mm/yyyy, d/m/yy, yyyy-mm-dd, yy-mm-dd
Submitted by
anonymous
-
5 years ago
1
URL with port and hash
PCRE (PHP <7.3)
URL with port and hash
Submitted by
anonymous
-
5 years ago
1
Exclude extension from file basename
PCRE (PHP <7.3)
Description Exclude extension from file basename - get filename only! BASENAME = FILENAME.EXTENSION
Submitted by
Cober@Axterbach
-
5 years ago
1
IPv4 private CIDR range RFC1918
Golang
Validates that you provide a CIDR in one of the following valid ranges. 0.0.0 – 127.255.255.255 127.0.0.0/8 0.0.0 – 10.255.255.255 10.0.0.0/8 16.0.0 – 172. 31.255.255 172.16.0.0/12 192.168.0.0 – 192.168.255.255 192.168.0.0/16...
Submitted by
David Stockton
-
5 years ago
1
Exclude subdirs from URL
PCRE (PHP <7.3)
Excludes certain subdirs unless they contain specific valid patterns
Submitted by
anonymous
-
5 years ago
1
Iranian Mobile Numbers
PCRE (PHP <7.3)
Iranian Mobile Numbers By: EmIT (Seyed Emad Armoun) www.EmadArmoun.ir
Submitted by
anonymous
-
5 years ago
1
Audio filename splitter
Python
This Python regex allows you to split an audio filename with the sintax Authors - Title (Text1) [Text2].extension into: Group 1: Authors Group 2: Title Group 3: Text1 Group 4: Text2 Group 5: .extension...
Submitted by
Eche L.A.
-
5 years ago
1
Match what we don't want, to replace with empty
PCRE (PHP <7.3)
This was necessary for cases such as the Amazon Settlements reports To import these, we concatenate many file into one. The header in this concatenated file is reapeated as many times as files were concatenated. We have seen that is there are no sales with a promotion for a determined period, the fi...
Submitted by
anonymous
-
5 years ago
1
Name,last name, first name, full name
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
H codes in string PHP
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
capture production
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
5 years ago
1
Capture digits and extension of North American phone number (North American Numbering Plan)
PCRE (PHP <7.3)
strips Country Code 1 &/or token **strips separators **strips separators **strips extra digits in vanity phone numbers strips extension delimiter ${ext} or ${4} captures n-digit extension
Submitted by
anonymous
-
5 years ago
1
...
768
769
770
771
772
...
902
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
^
(
(
[
a
-
zA
-
Zà
-
ùÀ
-
Ù
]
+
)
(
\
)?
){0,7}
$
/
gm
Open regex in editor
Description
Aceita até 7 palavras, podendo conter acento, e com espaço entre elas
Submitted by
anonymous
-
4 years ago