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
Phone number regex
PCRE (PHP <7.3)
Original regex at https://www.regextester.com/103299. I added a check for US country code in front of the area code
Submitted by
anonymous
-
4 years ago
0
Get IdentityFile for Host in ssh_config
PCRE (PHP <7.3)
Sample regex to get the address to SSH IdentityFile for Host in ssh_config.
Submitted by
anonymous
-
4 years ago
1
Browser Console - Format Specifier
ECMAScript (JavaScript)
Captures format specifiers commonly used in logging and console messages, as defined in the current whatwg/console spec: %s: Formats the value as a string %i: Formats the value as an integer %d: Formats the value as an integer %f: Formats the value as a floating point value...
Submitted by
anonymous
-
4 years ago
1
Browser Console - Format Specifier
ECMAScript (JavaScript)
Captures format specifiers commonly used in logging and console messages, as defined in the current whatwg/console spec: %s: Formats the value as a string %i: Formats the value as an integer %d: Formats the value as an integer %f: Formats the value as a floating point value...
Submitted by
anonymous
-
4 years ago
0
markdown link detector
PCRE (PHP <7.3)
Can find markdown links and give you the text and links. Ignores image links.
Submitted by
anonymous
-
4 years ago
0
nb section-subsection with marginal note
PCRE (PHP <7.3)
added experimental support for historical notes (?:]+historicalnote*>[\w,\.\s]+)?
Submitted by
anonymous
-
4 years ago
0
nb - section with marginal note finder
PCRE (PHP <7.3)
added experimental support for historical notes intercaleted between marginal note and section
Submitted by
anonymous
-
4 years ago
1
create or change one optional part to another
PCRE (PHP <7.3)
Skip match process when S exist, or remove optional left most target T, capture left and right part of T. Use case: if N is not exist, modify/change T to N, or create N. If any create or modify write operated, appending output N to right using subsitution "$1$2N".
Submitted by
anonymous
-
4 years ago
1
nb - legacy section/subsection finder
PCRE (PHP <7.3)
no headings
Submitted by
anonymous
-
4 years ago
1
nb - legacy section/subsection with marginal note finder
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
nb - legacy section with marginal note finder
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Defects special char regex
PCRE (PHP <7.3)
Looking for reasonable terms with a special char in them
Submitted by
anonymous
-
4 years ago
1
Regex Replace params by space when value is null
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Regex Replace params SQL
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Проблем 2
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
0
CUSTOM JSON RSA KEY PATTERN - ECMASCRIPT
ECMAScript (JavaScript)
Final comma need to be replaced with empty.
Submitted by
anonymous
-
4 years ago
0
LaTeX: Match contents of equation or align environment
Python
no description available
Submitted by
anonymous
-
4 years ago
0
JSON RSA KEY PATTERN - PCRE
PCRE (PHP <7.3)
.NET Tested
Submitted by
anonymous
-
4 years ago
0
PEM PATTERN
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Match json string
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
...
259
260
261
262
263
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
access-list
\s
(?P<interface>
[^
\s
]
+
)
\s
(
extended
)
\s
(?P<allowed>
permit
|
deny
)
\s
(?P<protocol>
ip
|
tcp
|
udp
|
any
)
\s
(?P<source>
any
[
46
]
?
)
\s
(?P<dest>
host
\s
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
)
\s
eq
\s
(?P<services>
[^
\s
]
+
)?
/
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
4 years ago