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 15,100 community submitted regex patterns...
0
scst.conf parser - TargetDriver
PCRE (PHP <7.3)
Parse a portion of the SCST conf file. This separates the TARGET_DRIVER into a named 'target_driver' and 'target_content'
Submitted by
anonymous
-
5 years ago
0
scst.conf parser - TARGET_CONTENT splitter
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
scst.conf parser - Target attribute splitter
Python
no description available
Submitted by
anonymous
-
5 years ago
0
Parsing JSON Constructs
PCRE (PHP <7.3)
This regular expression searches for a matching number of '{' and '}' and captures the curly brackets and everything inside them including nested constructs. I created it because of a need to parse JSON formatted lists.
Submitted by
Zormaster
-
5 years ago
0
DEL1tokenENDDEL1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
rs-reg
PCRE (PHP <7.3)
personal patterns
Submitted by
anonymous
-
5 years ago
0
UK Postcode
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Splunk Searches 1
PCRE (PHP <7.3)
A Search that finds ERRORS and the Destination IP's associated with those ERRORS
Submitted by
anonymous
-
5 years ago
0
Parse URL by subcomponent
PCRE (PHP <7.3)
This regular expression parses URLs and captures their subcomponents. It ignores port numbers. Port numbers are necessary. But, they are rarely visible in URLs. When used in a URL, it comes after the TLD separated by a colon. When using HTTP, port 80 is standard. For HTTPS, use port 443.
Submitted by
Syd Salmon
-
5 years ago
0
Quantity/unit breakdown for WHMCS
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Using a positive lookbehind
PCRE (PHP <7.3)
From this StackOverflow question: https://stackoverflow.com/questions/60179989/how-to-match-only-first-occurrence-of-string-between-strings-using-regex
Submitted by
anonymous
-
5 years ago
0
Arabic letters (حروف عربية)
PCRE (PHP <7.3)
accept Arabic letters with spaces
Submitted by
anonymous
-
5 years ago
0
Automaton on p.996 of Cormen
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Indian mobile/landline numbers regex with optional +91 support
ECMAScript (JavaScript)
Indian mobile/landline numbers regex with optional +91 support
Submitted by
anonymous
-
5 years ago
0
Indian mobile/landline numbers regex with +91 support
ECMAScript (JavaScript)
Indian mobile/landline numbers regex with +91 support
Submitted by
anonymous
-
5 years ago
0
(ObjectDatabase|GSRoot)Test\.exe
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Req1;Req2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Macys
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
5 years ago
0
Tree Sitter Scope Selector
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
PHP Regex to Match Any Flipkart Url
PCRE (PHP <7.3)
Since flipkart.com takes https://www. only or starts directly with flipkart.com. this is a regex to match any flipkart url
Submitted by
anonymous
-
5 years ago
1
...
591
592
593
594
595
...
755
Community Library Entry
40
Regular Expression
PCRE (PHP <7.3)
/
(
(
(
[
A
-
Za
-
z
]
{3,9}
:
(?:
\/\/
)?
)
(?:
[
-;:&=
\+\$
,
\w
]
+
@
)?
[
A
-
Za
-
z0
-
9.-
]
+
|
(?:
www
.
|
[
-;:&=
\+\$
,
\w
]
+
@
)
[
A
-
Za
-
z0
-
9.-
]
+
)
(
(?:
\/
[
\+
~%
\/
.
\w
-_
]
*
)?
\?
?
(?:
[
-
\+
=&;%@.
\w
_
]
*
)
#
?
(?:
[
.
\!\/\\
w
]
*
)
)?
)
/
ig
Open regex in editor
Description
A quite neat regular expression for URLs, e-mails..., I found on Matthew O'Riordan's blog.
Submitted by
Matthew O'Riordan
-
12 years ago