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,980 community submitted regex patterns...
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
soap envelope regexp
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-11-03 10:56
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
test123
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-11-03 10:27
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
omit data between single quotes
ECMAScript (JavaScript)
hi, i've been trying for hours to do this, i need to omit all text between single quotes / double quotes can someone help with this
Submitted by
avi.m
-
9 years ago
2014-11-02 09:12
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
SickRage
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-11-02 04:13
0
4 upvotes, 4 downvotes (score 21.5%) (You must be signed in to vote)
Password strength check
PCRE (PHP <7.3)
Checks password for following attributes: At least 2 uppercase letters At least 2 lowercase letters At least 2 numbers At least 2 non-alphanumeric characters ...
Submitted by
Visigral
-
9 years ago
2014-10-31 21:32
2
4 upvotes, 2 downvotes (score 30%) (You must be signed in to vote)
phone regex
ECMAScript (JavaScript)
Match phone number with extensions or not
Submitted by
Mélissa Dumont
-
9 years ago
2014-10-31 17:31
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Remove invalid characters and autotrim
ECMAScript (JavaScript)
remove the multiline switch
Submitted by
iamtheauthor
-
9 years ago
2014-10-30 11:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Un-titled
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-29 17:47
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Nada
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-29 17:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Post
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-29 17:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Failure case for repeated strings
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-29 13:11
-3
3 upvotes, 6 downvotes (score 12.1%) (You must be signed in to vote)
Regex for minimum specific character length
ECMAScript (JavaScript)
Hi All, I'm currently having an issue regarding writing regex to check minimum length of specific character. My case is for phone number. E.g. Phone number required at leat 8 character and max 19 character. However, people are allowed to write with 'space' character in between and that 'space' sho...
Submitted by
krisha
-
9 years ago
2014-10-29 07:11
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regex Pattern for Mexico Phone Number using Groups
PCRE (PHP <7.3)
Can anyone help me format the following regex for Mexico Phone Numbers. I have two issues, the Regular Expression builder is telling me my Grouping is invalid and also I am having trouble with the 52 pattern. I want it to allow any two digits such as [0-9]{2} example: 52-555-786-2300 (\\+?1[\\s\...
Submitted by
kingpoop
-
9 years ago
2014-10-28 01:56
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Get version
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-27 12:58
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
None
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-27 06:42
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
f
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-25 12:01
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
,,,
PCRE (PHP <7.3)
,,,
Submitted by
,,,
-
9 years ago
2014-10-25 09:15
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
I need some one to generate an regexp please
ECMAScript (JavaScript)
I need regular expression for the string WC_AUTHENTICATION_1343459084. Here WC_AUTHENTICATION_ remains fixed and the number keeps changing. I have written the below logic. var re = new RegExp('[; ]'+"WC_PERSISTENT"+'[0-9]'); Please help
Submitted by
Sanuvimal.Mohan@target.com
-
9 years ago
2014-10-24 16:58
1
6 upvotes, 5 downvotes (score 28%) (You must be signed in to vote)
Find Word on A Text
PCRE (PHP <7.3)
This expression find a word in a text without limitation of "\b" statement
Submitted by
theShadow
-
9 years ago
2014-10-24 08:45
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
rwe
PCRE (PHP <7.3)
rwerw
Submitted by
rwerw
-
9 years ago
2014-10-24 07:52
1
...
621
622
623
624
625
626
627
...
649
Hashtag
15
25 upvotes, 10 downvotes (score 54.9%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
#
\w
+
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
Joogl
-
9 years ago
2014-10-05 17:14