Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET (C#)
Rust
Sponsors
Community Patterns
Search among 12,960 community submitted regex patterns...
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Password check - at least 1 char, 1 numeric, 8-64 chars long
PCRE (PHP <7.3)
Allows for a wide range of special characters. If you want it to have no upper bound, remove the 64 (but leave the 8,.
Submitted by
Peter Speden
-
8 years ago
2015-05-04 08:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
aa
PCRE (PHP <7.3)
aaa
Submitted by
aaa
-
8 years ago
2015-05-03 19:19
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Check if number is a float
ECMAScript (JavaScript)
no description available
Submitted by
@hiaru
-
8 years ago
2015-05-03 00:59
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Pig Latin regex
PCRE (PHP <7.3)
I got really bored so I made this (not so fancy) pig latin generator
Submitted by
jojodmo
-
8 years ago
2015-05-02 03:15
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
Match nth occurence of pattern
PCRE (PHP <7.3)
Match nth occurence of the patterns in the inner parenthesis. Put nth that you want to match in the curly braces (here, {3}).
Submitted by
Alex Hall
-
8 years ago
2015-05-01 17:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match nth occurence of expression
PCRE (PHP <7.3)
Change the number in curly braces (3 in this example) to match for the nth occurence of the expression in the two inner parenthesis
Submitted by
Alex Hall
-
8 years ago
2015-05-01 17:27
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
regex for redirect url
PCRE (PHP <7.3)
no description available
Submitted by
igor
-
8 years ago
2015-05-01 11:27
3
5 upvotes, 2 downvotes (score 35.9%) (You must be signed in to vote)
Capture only top-level (root) domain in URL
PCRE (PHP <7.3)
no description available
Submitted by
guyfawkes
-
8 years ago
2015-05-01 10:03
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Match domain part in Http(s) URLs
PCRE (PHP <7.3)
no description available
Submitted by
Nilratan
-
8 years ago
2015-05-01 04:06
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-04-30 13:16
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
imperial string
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-04-30 12:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
PHP DateInterval Specification Validator
PCRE (PHP <7.3)
This REGEX could be used to validate a PHP DateInterval specification.
Submitted by
Tim Visée, http://timvisee.com/
-
8 years ago
2015-04-29 19:13
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
very basic email regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-04-29 16:07
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
search file extention
PCRE (PHP <7.3)
search file extention
Submitted by
fau
-
8 years ago
2015-04-29 09:18
16
90 upvotes, 74 downvotes (score 47.2%) (You must be signed in to vote)
Password
ECMAScript (JavaScript)
Safe Password that allow only with a number, a lowercase, a uppercase, and a special character
Submitted by
davidlondono
-
8 years ago
2015-04-28 16:49
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Less number variables to dictionary
PCRE (PHP <7.3)
extract keys and values from .less variables
Submitted by
actarian
-
8 years ago
2015-04-28 09:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Remove GO and split for batch SQL text
ECMAScript (JavaScript)
Useful for when you need to convert a T-SQL MSSMS Server batch into individual SQL requests by removing the GO between them. e.g. Dim SQLBatches As String() = Regex.Split(text, "(?:\s|\r|\n)+GO\s*(?:\r|\n)", RegexOptions.IgnoreCase)
Submitted by
SarahC
-
8 years ago
2015-04-27 13:44
5
6 upvotes, 1 downvotes (score 48.7%) (You must be signed in to vote)
Replace caracters not inside HTM tags
ECMAScript (JavaScript)
Select a character (or string) ingnoring if that element is inside the HTML tags. Useful to apply html tags using replace.
Submitted by
Alex5B
-
8 years ago
2015-04-27 11:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
HP OO Shell OPeration
PCRE (PHP <7.3)
I am trying to capture from HP OO SSH shell operation, basicall it will run the commands what we send from HP OO and this operation expects return output to send next command. I am trying to send command gtacl and next command is LOGON username, OO expects to match string to send another command, t...
Submitted by
Lokesh
-
8 years ago
2015-04-25 11:48
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
filter noreply-ish e-mail addresses
PCRE (PHP <7.3)
no reply e-mail addresses don't want to receive a reply. Unfortunately, not all no reply e-mail addresses are formatted like noreply@domain.tld, so in order to catch as many of them as possible I made this regular expression which matches many forms of no reply e-mail addresses.
Submitted by
anonymous
-
8 years ago
2015-04-25 09:52
1
...
601
602
603
604
605
606
607
...
648
last, first middle name parser
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(
\S
+
)
,
(
\S
+
)
(
.
*
(?!
,
)
)
.
*
?
\n
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-04-12 22:29