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,740 community submitted regex patterns...
0
Phone number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Add xml:space to file
PCRE (PHP <7.3)
no description available
Submitted by
Yu Tang
-
9 years ago
0
camelCase
PCRE (PHP <7.3)
no description available
Submitted by
Danno
-
9 years ago
0
^[a-zA-Z_\-]+$
PCRE (PHP <7.3)
Check no space
Submitted by
anonymous
-
9 years ago
0
OSI Key
PCRE (PHP <7.3)
no description available
Submitted by
Mike LeBlanc
-
9 years ago
0
tmutil regex ID
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
WB
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
WB
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
a
PCRE (PHP <7.3)
a
Submitted by
a
-
9 years ago
0
y
PCRE (PHP <7.3)
all less jpg
Submitted by
w
-
9 years ago
0
Find an exact phrase only if it is within a certain number of chars.
PCRE (PHP <7.3)
Find an exact phrase (with each space and character in its own place) only if it is within the first 40 characters of the entire sentence. Useful to search non-standard phrases in log files.
Submitted by
RicardoSPimentel
-
9 years ago
0
url validator
PCRE (PHP <7.3)
no description available
Submitted by
Briareos
-
9 years ago
0
Open and Closing Markup tags on Single Line Markup
PCRE (PHP <7.3)
Quick Dirty Working
Submitted by
Timothy Smith
-
9 years ago
0
NATO Stock Number (with or without NSC)
PCRE (PHP <7.3)
RegEx to validate a NATO Stock Number with or without the NATO Stock Code and with or without dashes
Submitted by
Matthew Perryman
-
9 years ago
0
last name|firstname|463
PCRE (PHP <7.3)
no description available
Submitted by
Chris
-
9 years ago
0
RFC Email address attempt
PCRE (PHP <7.3)
This looks to attempt to validate email addresses per the RFC. I don't know how accurate it is.
Submitted by
anonymous
-
9 years ago
0
Matches only word without specific HTML tag around it.
PCRE (PHP <7.3)
This will match a word that is not wrapper by the a specified HTML element (with a class).
Submitted by
Johnny Ji
-
9 years ago
0
Search href in <a> tag (internal links)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
<Trigger R="In a burst of feathers, a portal appears!" SD="DUCK PORTAL
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
date format slicing
PCRE (PHP <7.3)
lookahead
Submitted by
Kmna
-
9 years ago
1
...
25
26
27
28
29
...
487
Community Library Entry
3
Regular Expression
Golang
`
(?i)
^
(?:
(
[
a
-
z0
-
9-
]
+
|
\*
)
\.
)?
(
[
a
-
z0
-
9-
]
{1,61}
)
\.
(
[
a
-
z0
-
9
]
{2,7}
)
$
`
gm
Open regex in editor
Description
Validates subdomain, root domain, and wild card domains
Submitted by
AnonymousDapper
-
8 years ago