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 3,580 community submitted regex patterns...
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)
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
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)
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
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
ECMAScript (JavaScript)
Submitted by
-
9 years ago
2014-10-23 22:33
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Url regex testing
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-23 18:00
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
e164 format
ECMAScript (JavaScript)
e164 format
Submitted by
anonymous
-
9 years ago
2014-10-21 16:20
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
e164_basic
ECMAScript (JavaScript)
e164_basic
Submitted by
anonymous
-
9 years ago
2014-10-21 16:19
4
9 upvotes, 5 downvotes (score 38.8%) (You must be signed in to vote)
Capturing items from multiple lists using a single regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-21 15:19
7
21 upvotes, 14 downvotes (score 43.6%) (You must be signed in to vote)
if, else if, else condtion match
ECMAScript (JavaScript)
matches full if condition statment eg: if(condition){ ... } else if(condition){ ... }else{...
Submitted by
Ivan Jakesevic
-
9 years ago
2014-10-20 13:50
2
9 upvotes, 7 downvotes (score 33.2%) (You must be signed in to vote)
Positive Numbers greater than 0 with leading zeroes.
ECMAScript (JavaScript)
Accepts all positive numbers above 0. Accepts numbers with leading zeroes e.g.: 0123, 00123.
Submitted by
Sandeep Ranka
-
9 years ago
2014-10-17 05:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get the command
ECMAScript (JavaScript)
Simply gets the command from a script command, automatically removes unwanted spaces.
Submitted by
anonymous
-
9 years ago
2014-10-15 09:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Simple script command and parameter grabber
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-15 09:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Finding URLs within full text
ECMAScript (JavaScript)
Finds URLs in a larger body of text. URLs may or may not be enclosed in punctuation, such as parentheses, that are not part of the URL.
Submitted by
D0nB1z
-
9 years ago
2014-10-14 20:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
hr
ECMAScript (JavaScript)
no description available
Submitted by
artem
-
9 years ago
2014-10-10 08:25
15
25 upvotes, 10 downvotes (score 54.9%) (You must be signed in to vote)
Hashtag
ECMAScript (JavaScript)
The secret of the Twitterverse.
Submitted by
Joogl
-
9 years ago
2014-10-05 17:14
-2
5 upvotes, 7 downvotes (score 19.3%) (You must be signed in to vote)
Decimal Number
ECMAScript (JavaScript)
Parse decimal numbers with optional thousands and/or decimal separator. #i18n #l11n #international
Submitted by
Andreas Pizsa
-
9 years ago
2014-10-03 05:32
-2
2 upvotes, 4 downvotes (score 9.7%) (You must be signed in to vote)
valid windows file name
ECMAScript (JavaScript)
no description available
Submitted by
Mitacha
-
9 years ago
2014-10-01 14:31
1
...
171
172
173
174
175
176
177
...
179