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...
3
TEST
ECMAScript (JavaScript)
negation
Submitted by
anonymous
-
10 years ago
3
Alternative Capture Country Codes
PCRE (PHP <7.3)
no description available
Submitted by
Branden
-
10 years ago
1
matching value of html src attribute
PCRE (PHP <7.3)
matching value of html src attribute
Submitted by
junkuos
-
10 years ago
1
get top level domain excluding ports
ECMAScript (JavaScript)
I need to get the top level domain from the request header but it can be in a vary ways.. how can I match but exclude parts I dont want to get ie. ports
Submitted by
nei
-
10 years ago
4
uri parser
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
spaces in parenthesis
ECMAScript (JavaScript)
Eliminate spaces in the inner part of parenthesis.
Submitted by
Luis Colorado
-
10 years ago
2
Find any digits in string
Python
no description available
Submitted by
anonymous
-
10 years ago
3
How do I write a Regex to inspect Cisco Interfaces
PCRE (PHP <7.3)
I am asking for help in writing a regular expression to shorten this expression. I need the string below to search every interface within the range of 1 -24 to validate the configuration. If one interface does not have the required configuration then the expression fails. interface GigabitEtherne...
Submitted by
Pirates
-
10 years ago
1
Email address validator
PCRE (PHP <7.3)
Validates most email addresses. Using the range [A-Za-z0-9] at the beginning instead of \w means an address cannot begin with an underscore. This range is also used to exclude underscores from the domain (part after @).
Submitted by
Owen Howard
-
10 years ago
3
Test a string against CamelCase
ECMAScript (JavaScript)
See if a string is in CamelCase format
Submitted by
Tonny Xu
-
10 years ago
4
Match nth occurence of pattern
PCRE (PHP <7.3)
Match nth occurence of the patterns in the inner parenthesis. Put nth that you want to match in the curly braces (here, {3}).
Submitted by
Alex Hall
-
10 years ago
1
States
Python
States (US) 2 char format, matches: Ga or GA
Submitted by
miqui
-
10 years ago
-2
Detect HTML Linebreak Tags
ECMAScript (JavaScript)
Detect various possible HTML linebreak tags (eg. )
Submitted by
@benhodgson
-
10 years ago
3
images url match in text
PCRE (PHP <7.3)
no description available
Submitted by
Redfern.89
-
10 years ago
3
prices in nis
Python
no description available
Submitted by
molaxx
-
10 years ago
-3
RegEX for account code starting with 000-
PCRE (PHP <7.3)
no description available
Submitted by
Joe H
-
10 years ago
3
Div content
PCRE (PHP <7.3)
no description available
Submitted by
mohammadsaleh
-
10 years ago
1
leap year validate
ECMAScript (JavaScript)
no description available
Submitted by
Ahosan Karim Asik
-
9 years ago
1
CPF
ECMAScript (JavaScript)
Validador de CPF
Submitted by
Gustavo Américo
-
9 years ago
1
Extract domain and path from video embeds
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
18
19
20
21
22
...
902
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
(
[
A
-
z
]
{3}
[
\d
]
{2}
[
\d
]
{1,2}
:
[
\d
]
{1,2}
:
[
\d
]
{1,2}
)
(
[
\d
]
{1,3}
\.
[
\d
]
{1,3}
\.
[
\d
]
{1,3}
\.
[
\d
]
{1,3}
)
(
\[
S
\=
[
\d
]
{9}
\]
)
(
\[
[
A
-
z
]
ID=
.
{1,18}
\]
)
\s
{1,3}
(
\(
N
\s
[
\d
]
{5,20}
\)
)?
(
\s
+
(
.
*
)
)
\s
{1,3}
?
(
\[
Time:
.
*
\]
)?
/
gm
Open regex in editor
Description
no description available
Submitted by
sdf
-
4 years ago