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 17,100 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find number before last 3 and add a comma
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
2017-06-30 14:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find end digits of number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
2017-06-30 13:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove Tabs and check for more than one word after search
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
2017-06-30 11:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
años extendido
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
2017-06-29 22:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Phone number with dashes
PCRE (PHP <7.3)
Finds valid phone numbers, including dashes Valid: 223-444-5555 Invalid:...
Submitted by
anonymous
-
6 years ago
2017-06-29 20:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
IP Address
PCRE (PHP <7.3)
Validate the structure of the IP address with suffix of red
Submitted by
anonymous
-
6 years ago
2017-06-29 20:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match all #tag except specified
ECMAScript (JavaScript)
in the example, I'm matching all the #tags except *#thankyouburger *. very useful for when you want to strip out all but one tag
Submitted by
Pavel Dominguez
-
6 years ago
2017-06-29 15:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Entête de fiche
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
2017-06-29 14:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
logs
PCRE (PHP <7.3)
2017-06-29\s06:50:(\d+).?([A-Z]+).?(?:\[(.*?+))
Submitted by
anonymous
-
6 years ago
2017-06-29 11:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
logs
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
2017-06-29 11:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
iranian cell-number pattern
PCRE (PHP <7.3)
Iranian cell phone number pattern to being used in regular expression this work for iranian operator (irancell , Taliya, MCI,RighTel) Irancell and Taliya : 093 , MCI : 091 , RighTel : 092 cheers
Submitted by
nasserFet
-
6 years ago
2017-06-29 10:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
string valid contains html
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
2017-06-29 07:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
USD
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
2017-06-28 18:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Palindromes
PCRE (PHP <7.3)
How to detect palindromes up to 12 characters in length. I chose 12 because currently, the longest palindrome that is an actual word is "tattarrattat". This was a fun exercise because someone said pcre can't detect palindromes. Check and mate, my good sir.
Submitted by
Damian Torres
-
6 years ago
2017-06-28 17:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Spreadsheet sheet reference
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
2017-06-28 04:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
image cid
Golang
no description available
Submitted by
anonymous
-
6 years ago
2017-06-27 09:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Array-like string
ECMAScript (JavaScript)
Matches strings that are formatted as arrays. The following will match: [ 3.4, -600, foo ] ["foo","bar"] [ bar, 1600 ]...
Submitted by
Chris Swithinbank
-
6 years ago
2017-06-27 06:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
2017-06-26 21:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
First name last name reversal
PCRE (PHP <7.3)
Format name listing by putting last name first
Submitted by
Panagiotis Plevrakis
-
6 years ago
2017-06-26 20:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Customer
Golang
no description available
Submitted by
anonymous
-
6 years ago
2017-06-26 18:32
1
...
534
535
536
537
538
539
540
...
855
Date January 5, 2016 Match with Capturing
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(
Jan
(
uary
)?
|
Feb
(
ruary
)?
|
Mar
(
ch
)?
|
Apr
(
il
)?
|
May
|
Jun
(
e
)?
|
Jul
(
y
)?
|
Aug
(
ust
)?
|
Sep
(
tember
)?
|
Oct
(
ober
)?
|
Nov
(
ember
)?
|
Dec
(
ember
)?
)
\s
+
(
\d
{1,2}
)
,
\s
+
(
\d
{4}
)
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
7 years ago
2017-05-18 13:49