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 11,600 community submitted regex patterns...
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
camelCase
PCRE (PHP <7.3)
no description available
Submitted by
Danno
-
8 years ago
2015-11-23 05:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Multi word
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-23 00:11
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Add xml:space to file
PCRE (PHP <7.3)
no description available
Submitted by
Yu Tang
-
8 years ago
2015-11-22 17:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
2 dots email
PCRE (PHP <7.3)
Allow only two dots email address, for username.group@domain.tld
Submitted by
Emad Abughali
-
8 years ago
2015-11-22 13:24
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Phone number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-22 12:22
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Phone number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-22 12:22
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
JSON Validator
PCRE (PHP <7.3)
Complete (recursive) JSON validation regular expression.
Submitted by
@Erutan409
-
8 years ago
2015-11-20 19:00
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
LaTeX - Nonspaced operators
PCRE (PHP <7.3)
Find nonspaced operators with capturing groups to reformat correctly.
Submitted by
Dave
-
8 years ago
2015-11-20 18:54
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
notepad++
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-20 13:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Hook ActionTag Parser
PCRE (PHP <7.3)
Parses @FOO=BAR, @FOO, and @FOO{"JSON":"OBJECT"} to be used in REDCap action tags for passing parameters to functions.
Submitted by
Andrew Martin
-
8 years ago
2015-11-20 06:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
folio
PCRE (PHP <7.3)
no description available
Submitted by
calvin
-
8 years ago
2015-11-20 06:16
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
remove last char from string (once)
PCRE (PHP <7.3)
remove the last char from a string. Replace 'e' with the char to remove.
Submitted by
anonymous
-
8 years ago
2015-11-20 05:52
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Remove \r\n & \"
PCRE (PHP <7.3)
JSON object string \r\n & \" replace regex
Submitted by
Jerad Rutnam
-
8 years ago
2015-11-20 05:46
6
9 upvotes, 3 downvotes (score 46.8%) (You must be signed in to vote)
Validate Birth Date (d/m/Y)
PCRE (PHP <7.3)
From 1970 to 2015 Replace: (\d{4})$ for (19[7-9]\d|200-1)$
Submitted by
Valdeir Santana
-
8 years ago
2015-11-20 05:28
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Strong Password
PCRE (PHP <7.3)
1 digit 1 lower case 1 upper case 1 special character (no-space) 8-20 length
Submitted by
Femi Fapohunda
-
8 years ago
2015-11-19 21:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Excluir string en nombre de imagen
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-19 11:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
SN Matcher
PCRE (PHP <7.3)
^([A-E])([A-C])([0-2])(\d)([0-5])(\d)([B])(\d{6})([A-Z0-9]{2})(\d{3})$
Submitted by
anonymous
-
8 years ago
2015-11-19 10:41
-3
2 upvotes, 5 downvotes (score 8.2%) (You must be signed in to vote)
retrieve hostname without subdomain
PCRE (PHP <7.3)
no description available
Submitted by
Diego Zuluaga
-
8 years ago
2015-11-19 00:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
nathan
PCRE (PHP <7.3)
no description available
Submitted by
nathan
-
8 years ago
2015-11-18 21:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Tel
PCRE (PHP <7.3)
Simple tel regex
Submitted by
anonymous
-
8 years ago
2015-11-18 16:23
1
...
492
493
494
495
496
497
498
...
580
Update something
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(
[
0
-
9
]
+
)
\s
+
(
[
0
-
9
]
+
)
\s
+
(
.
*
?
)
\s
+
(
\w
+
)
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-10-22 10:19