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 9,340 community submitted regex patterns...
-1
Street, City, State|State Code, Zip
PCRE (PHP <7.3)
Matches the following format of US address: Street, City, State|State Code, Zip Example: 765757 North Nevada Avenue, Colorado Springs, CO, 80918
Submitted by
Chandan Kumar Sinha
-
9 years ago
-1
Extract Java Exception Message Field
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
-1
index
PCRE (PHP <7.3)
include index.aspx
Submitted by
anonymous
-
9 years ago
-1
Hostname validator
PCRE (PHP <7.3)
Validates the format of IPv4/IPv6 hostnames as well as domain names.
Submitted by
anonymous
-
9 years ago
-1
uah
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
-1
JETAIR NL ARRIVAL DATE
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
-1
Find comments or commentblocks in Code V1.01
PCRE (PHP <7.3)
Find Comments starting with # or //. Also finds Commentblocks starting with /* and ending with */.
Submitted by
Candyman1332
-
9 years ago
-1
XML matching nodes
PCRE (PHP <7.3)
This regex matches opening and closing tags in XML (including attributes) and is used to "hide" the value of the node.
Submitted by
Marc Fellman
-
9 years ago
-1
HTML Code
PCRE (PHP <7.3)
HTML CODE given by (hex number   OR number   OR name )
Submitted by
novy
-
9 years ago
-1
Simple json key-value parser
PCRE (PHP <7.3)
[{"name":"Піксель ТВ","url":"http://st.it-tv.org:4575/?224.1.16.33","type":81,"tsOn":false}]
Submitted by
ReMMeR
-
9 years ago
-1
Names
PCRE (PHP <7.3)
Just checks for two capitalized words separated by a string
Submitted by
anonymous
-
9 years ago
-1
ISO 8601 datetime for Forecast.io API
PCRE (PHP <7.3)
Should match ISO 8601 datetime for Forecast.io API: [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS] with an optional time zone formatted as Z for GMT time or {+,-}HH (with or without separating colon) for an offset
Submitted by
Clifford Paulick
-
9 years ago
-1
parsing splunk tacacs with regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
-1
Capture a tagged Number given in quotes within a free text
PCRE (PHP <7.3)
PN"+)["]
Submitted by
OS
-
9 years ago
-1
split URL in protokoll, domain, file(with path), parameter and anker
PCRE (PHP <7.3)
split URL in protokoll, domain, file(with path), parameter and anker
Submitted by
Candyman
-
9 years ago
-1
Regex to find begin and end of a HTML tag with a certain class
PCRE (PHP <7.3)
The regex finds for example the random text sequence, if ohne single quotes ar used. The td itself may vary (td, div, span, p and so on), the provided class ist the item searched vor.
Submitted by
xm318
-
9 years ago
-1
Workflow field converter
PCRE (PHP <7.3)
no description available
Submitted by
Brian Olson
-
9 years ago
-1
phone number to match all cases of phone number all over the world
PCRE (PHP <7.3)
i.e: (555)555-5555 (OK) 5555555555 (ok) 555.555.5555 (ok) 55555555556 (ok) +184 (555)555-5555 (ok)...
Submitted by
Quoc Kenny Nguyen
-
8 years ago
-1
Hurger
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
-1
unionWithToDate
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
...
6
7
8
9
10
...
467
Community Library Entry
2
Regular Expression
.NET 7.0 (C#)
@"
^
(?>
(?'protocol'
[
a
-
zA
-
Z
]
+
)
://
)?
(?'domain'
[
a
-
zA
-
Z0
-
9.
\-
_
]
*
)?
(?>
:
(?'port'
\d
{1,5}
)
)?
/
(?'path'
[
a
-
zA
-
Z0
-
9_
\-
%
]
+
)
(?:
(?>
\?
(?'query'
[
a
-
zA
-
Z0
-
9_
\-
=&%
]
+
)
)
(
)
|
(?>
#
(?'anchor'
[
a
-
zA
-
Z0
-
9_
\-
%
]
+
)
)
(
)
){0,2}
$
"
gm
Open regex in editor
Description
Matches protocol, domain, port, path, query and anchor as named capturing groups.
Submitted by
Jonathan
-
a year ago
(Last modified a year ago)