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 14,740 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match slahses and numbers
ECMAScript (JavaScript)
Match all forward and backward slashes and numbers in a string. Usefull for obtaining only text chars from address.
Submitted by
Rado
-
8 years ago
2015-11-07 18:49
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Phone number
ECMAScript (JavaScript)
no description available
Submitted by
Vaseker
-
8 years ago
2015-11-07 16:32
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
lookahead not match 'aa'
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-07 12:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Amazon.ca Order Total
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-07 00:01
-3
2 upvotes, 5 downvotes (score 8.2%) (You must be signed in to vote)
Remove special character at first position of string
PCRE (PHP <7.3)
This search for special character at first position in the string
Submitted by
anonymous
-
8 years ago
2015-11-06 23:27
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-06 20:12
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract values from hostname
ECMAScript (JavaScript)
no description available
Submitted by
Matthew Ledbetter
-
8 years ago
2015-11-06 18:37
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Parse out a URL for optional values
ECMAScript (JavaScript)
Tokenize a HostName for optional string values. Good for testing whether you are in np, qa, qp, or production environments.
Submitted by
Matthew Ledbetter
-
8 years ago
2015-11-06 18:03
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
To work with comma separated lists
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-06 16:37
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
PARSE NUMBERS
PCRE (PHP <7.3)
any int, any int with decimal any int with comma delimited any int with comma delimited and decimal
Submitted by
amaroyche
-
8 years ago
2015-11-06 15:52
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Trick empty char
PCRE (PHP <7.3)
no description available
Submitted by
CROSP
-
8 years ago
2015-11-06 15:11
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Parse OTP from QR Code
ECMAScript (JavaScript)
This regular expression parses the uri of an one-time password typically masked by a QR Code. The expression supports the core hotp and totp, name, secret and optional counter (for hotp)
Submitted by
Carsten and Craig
-
8 years ago
2015-11-06 14:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Sign before number
PCRE (PHP <7.3)
no description available
Submitted by
Albion Liçi
-
8 years ago
2015-11-06 14:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-06 13:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL Path Validation
PCRE (PHP <7.3)
Validates an url path that must begin with '/' and not contain special characters or repeated '/' [forward slashes]
Submitted by
rochmit10
-
8 years ago
2015-11-06 11:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
testscript
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-06 10:49
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-06 08:54
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
JAPANESE ZENKAKU KANA ONLY
ECMAScript (JavaScript)
NOT ALLOW HANKAKU CHARACTOR
Submitted by
nobuhiko futagami
-
8 years ago
2015-11-06 02:32
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
GROUPS
PCRE (PHP <7.3)
YEAH
Submitted by
AWESOME
-
8 years ago
2015-11-06 02:19
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
extract sql table name from request
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-06 00:01
1
...
626
627
628
629
630
631
632
...
737
filter range
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
^
(?!
$
)
(?:
<from>"
(
[
\d
\-
.
]
*
)
"
)?
(?:
<to>"
(
[
\d
\-
.
]
*
)
"
)?
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-10-07 16:09