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,000 community submitted regex patterns...
1
Validate alphanumeric and numeric range
PCRE (PHP <7.3)
For Validating alphanumeric and numeric range
Submitted by
anonymous
-
10 years ago
4
Element's Attribute Value in XML (simple)
PCRE (PHP <7.3)
Simple regular expression for extracting attribute value of the element in XML-string. Attribute value should be in quotes.
Submitted by
Nikita Danilov
-
10 years ago
4
Task 1
PCRE (PHP <7.3)
Finds a happy smile, except sad one
Submitted by
Kovalev Evgeny
-
11 years ago
4
IPV4 address validation using recursion
PCRE (PHP <7.3)
Validate IPv4 addresses using PCRE's recursion patterns. A shorter but less efficient alternative to https://regex101.com/r/wZ6oY5/1
Submitted by
Captain Haddock
-
9 years ago
4
Mobile phone russia
ECMAScript (JavaScript)
Submitted by
Johhny
-
9 years ago
3
phone
Python
matches: + example: +52 33 3884 7720 +1 770 343 5788
Submitted by
miqui
-
9 years ago
4
url
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
5
Separate words (works with spaces, dashes and underscores)
PCRE (PHP <7.3)
no description available
Submitted by
marcoslhc
-
10 years ago
5
ipv6 Validation
PCRE (PHP <7.3)
Handle all condition for ipv6 example: 1) FE80::8329 2) FE80::FFFF:8329 3) FE80::B3FF:FFFF:8329 4) FE80::0202:B3FF:FFFF:8329...
Submitted by
Lim Yew Teck, Nicholas
-
9 years ago
4
Repeated words (JS)
ECMAScript (JavaScript)
no description available
Submitted by
paconaranjo
-
10 years ago
4
Simple Linux File Absolute Path Tester
PCRE (PHP <7.3)
Match simple linux file absolute path as /usr/share/my-folder/helloworld.jpg
Submitted by
FLonpl6
-
10 years ago
4
url matching
ECMAScript (JavaScript)
supports all major protocols
Submitted by
matheus silva
-
10 years ago
4
Validate a Particular File Extension
PCRE (PHP <7.3)
Validates a File Path and makes sure the correct extension is at the end.
Submitted by
Andrew Morpurgo
-
10 years ago
4
Capture only top-level (root) domain in URL
PCRE (PHP <7.3)
no description available
Submitted by
guyfawkes
-
10 years ago
4
tgs data delivery .zip ID
PCRE (PHP <7.3)
Pull zip download ID from default links. Works with datadelivery and datadelivery1
Submitted by
TRL
-
9 years ago
4
vowel words
ECMAScript (JavaScript)
([!-\~]aeiou)
Submitted by
Ipsita Mohanty
-
9 years ago
4
Timestamp
PCRE (PHP <7.3)
12.04.1975T03:02:00.88 With milliseconds and T seperator. Excludes most invalid dates, except 30/31ths of month, leap years/february heaving only 29/28.
Submitted by
anonymous
-
9 years ago
4
Skype ConversationText Extraction
PCRE (PHP <7.3)
When you copy a skype conversation and paste it in a text area then it includes timestamps, User's name and whether or not the message had been edited. This matches all of those in seperate groups for easy substitution
Submitted by
Zalatos
-
9 years ago
4
Get image tag attributes
PCRE (PHP <7.3)
no description available
Submitted by
AgustÃn Bouillet
-
8 years ago
5
Youtube ID matcher
ECMAScript (JavaScript)
Credit: https://gist.github.com/FinalAngel/1876898
Submitted by
anonymous
-
11 years ago
1
...
883
884
885
886
887
...
900
Community Library Entry
1
Regular Expression
ECMAScript (JavaScript)
/
^
(
0
|
[
1
-
9
]
\d
*
)
\.
(
0
|
[
1
-
9
]
\d
*
)
\.
(
0
|
[
1
-
9
]
\d
*
)
(?:
-
(
(?:
0
|
[
1
-
9
]
\d
*
|
\d
*
[
a
-
zA
-
Z-
]
[
0
-
9a
-
zA
-
Z-
]
*
)
(?:
\.
(?:
0
|
[
1
-
9
]
\d
*
|
\d
*
[
a
-
zA
-
Z-
]
[
0
-
9a
-
zA
-
Z-
]
*
)
)*
)
)?
(?:
\+
(
[
0
-
9a
-
zA
-
Z-
]
+
(?:
\.
[
0
-
9a
-
zA
-
Z-
]
+
)*
)
)?
$
/
gm
Open regex in editor
Description
changelog
Submitted by
alexsio nau
-
4 months ago