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,940 community submitted regex patterns...
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
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Naming
ECMAScript (JavaScript)
Naming
Submitted by
Matt
-
8 years ago
2015-11-05 22:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Name validator
PCRE (PHP <7.3)
Validates a first middle and last name with hyphens as a single string
Submitted by
Keith Johnson
-
8 years ago
2015-11-05 20:55
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
isDateTime
ECMAScript (JavaScript)
Validação: Data d/m/yy d/mm/yyyy dd/m/yyyy dd/mm/yy...
Submitted by
Rafael Fischer
-
8 years ago
2015-11-05 19:15
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
isDate
ECMAScript (JavaScript)
Validador de Data e Hora
Submitted by
Rafael Fischer
-
8 years ago
2015-11-05 19:09
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Camel case string splitter
PCRE (PHP <7.3)
Splits CamelCase single string into separate strings. Can be used for transforming CamelCase to snake_case. Also works with numbers and capital letter shortcuts (e.g SomeWTFVariable1).
Submitted by
Nicolas
-
8 years ago
2015-11-05 14:19
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Empty string test
PCRE (PHP <7.3)
Regular for testing empty strings for validation purpose
Submitted by
anonymous
-
8 years ago
2015-11-05 12:58
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
ISO 8601 Duration Validator
ECMAScript (JavaScript)
Validates format of ISO-8601 duration.
Submitted by
ed0wolf
-
8 years ago
2015-11-05 07:41
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Grab valid LAN IPs
PCRE (PHP <7.3)
no description available
Submitted by
jchd
-
8 years ago
2015-11-05 07:14
1
5 upvotes, 4 downvotes (score 26.7%) (You must be signed in to vote)
email regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-05 06:37
1
...
636
637
638
639
640
641
642
...
747
JSON Double Quoting
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
(
{
|
,
)?
\s
*
'
?
(
[
A
-
Za
-
z_$
\.
]
[
A
-
Za
-
z0
-
9_
\-\.
$
]
*
)
'
?
\s
*
:
\s
*
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-10-13 01:19