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 2,220 community submitted regex patterns...
0
Words with spaces in-between
Python
Matches words (with certain special chars) and one or more spaces in between those words.
Submitted by
JAVA
-
9 years ago
0
Phone number extract
Python
Used to get the phone number from a list of phone numbers
Submitted by
jmitz
-
9 years ago
0
Find datetime directory
Python
no description available
Submitted by
anonymous
-
9 years ago
0
Last SEO RegExp
Python
Last SEO RegExp
Submitted by
Jay Patel
-
9 years ago
0
Apache Log Format Parser
Python
no description available
Submitted by
anonymous
-
9 years ago
0
exclude a list of words
Python
exclude a list of words, in this case, "hello" and "you"
Submitted by
Z
-
9 years ago
0
Find a quoted unix style path in text block
Python
Find a quoted unix style path in text block, breaking the text block into constituent parts, 1 before the quoted path starts 2 the path 3 the filename 4 whats left
Submitted by
AndyGif
-
9 years ago
0
phone number
Python
no description available
Submitted by
Dries Werckx
-
9 years ago
0
All Same Number
Python
Check all the numbers are same in a string.
Submitted by
DJA
-
8 years ago
0
Arabic letters Regex
Python
Regex for matching only Arabic letters characters
Submitted by
Waleed Abo Bakr Mahmoud
-
8 years ago
0
ip
Python
ip-adreese
Submitted by
anonymous
-
8 years ago
0
Validates argentinian telephone numbers
Python
To validate a number with this regular expression is mandatory to have the number group with only digits. You can modify the number group to accept spaces, hyphens, and dots with something like this: (?P[\d\-\.]+). Valid examples +54 9 11 50165564 54 2268 201232 15 50165564...
Submitted by
AgustÃn Bouillet
-
8 years ago
0
Newline matcher
Python
new line matcher
Submitted by
anonymous
-
8 years ago
0
fraction
Python
mixed or simple fraction with whitespace, optional dash as separator
Submitted by
anonymous
-
8 years ago
0
Valid UK postcode check
Python
Rather long, but pretty accurate, matches on BS7666 alpha num pattern. https://en.wikipedia.org/wiki/Postal_code#UK
Submitted by
anonymous
-
8 years ago
0
UK Postcode (per government specification)
Python
UK postcode pattern as specified in offical document https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/283357/ILRSpecification2013_14Appendix_C_Dec2012_v1.pdf
Submitted by
anonymous
-
8 years ago
0
itcareers.apex link
Python
link making
Submitted by
chandni
-
8 years ago
0
Whatsapp Chat Regex
Python
This is a Regex to the Whatsapp chat data. This parses the G1 - Date, G2 - Time, G3 - User, G4 - Qualifier & G5 - Actual chat data. The Qualifier (G4) identifies the group Creation information, : that separates the User and Ping chat data and New user added chats.
Submitted by
Vinodh Sukumaran
-
8 years ago
0
domains
Python
no description available
Submitted by
anonymous
-
8 years ago
0
decimal_to_frac
Python
Convert .5 in all its forms to 1/2
Submitted by
Brett Tofel
-
8 years ago
1
...
5
6
7
8
9
...
111
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)