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 12,600 community submitted regex patterns...
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
RegexMatchingAtLeast2SpecialCharacters
PCRE (PHP <7.3)
The special characters are ~!@#$%^&*()
Submitted by
anonymous
-
9 years ago
2015-01-14 15:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
filter match
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-01-14 12:11
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Test post by e-mail
PCRE (PHP <7.3)
Description here
Submitted by
Arief
-
9 years ago
2015-01-14 05:04
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
transfer
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-01-13 20:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Code Review
PCRE (PHP <7.3)
username
Submitted by
Devon Parsons
-
9 years ago
2015-01-13 20:23
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Array formatting (serialized)
PCRE (PHP <7.3)
Check for correctly formatted array of this type: array( array('name'=>'War and Peace', 'year'=>1865), array('name'=>'Different Seasons', 'year'=>1982), )
Submitted by
oneperfectsunrise
-
9 years ago
2015-01-13 15:58
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Array formating (serialized)
PCRE (PHP <7.3)
Check for correctly formatted array of this type: array('a', 'bb', 'ccccc',)
Submitted by
oneperfectsunrise
-
9 years ago
2015-01-13 15:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Array formating
PCRE (PHP <7.3)
Check for correctly formatted array of this type: array(1,2,3,)
Submitted by
oneperfectsunrise
-
9 years ago
2015-01-13 15:41
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
tel:// and sms:// validator
PCRE (PHP <7.3)
Easly to check tel:// or sms:// protocols.
Submitted by
Erdem Arslan
-
9 years ago
2015-01-12 23:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
replace test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-01-12 19:18
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Group and split string between pipe delimiters
ECMAScript (JavaScript)
Please help! This is probably a very simple task for regex experts. I want to extract and group the fields before or after each pipe character |. 1234|text1|text2|text3|text4|text5 Expected result would be separate groups e.g.: 1234...
Submitted by
Grateful or dead
-
9 years ago
2015-01-12 04:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
ZLNLB
PCRE (PHP <7.3)
Zero length negative lookbehind
Submitted by
anonymous
-
9 years ago
2015-01-09 17:58
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
sms csv (sqlite exported) replace newlines with \n in body
PCRE (PHP <7.3)
no description available
Submitted by
flash_us
-
9 years ago
2015-01-09 00:37
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
Detect a numeric string
ECMAScript (JavaScript)
no description available
Submitted by
Ankur Chauhan
-
9 years ago
2015-01-08 22:59
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Spanish NIE / NIF Validator
ECMAScript (JavaScript)
no description available
Submitted by
Gauravity
-
9 years ago
2015-01-06 16:07
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
reference
PCRE (PHP <7.3)
no description available
Submitted by
karthikeyan
-
9 years ago
2015-01-05 12:59
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Extract Metadata
PCRE (PHP <7.3)
no description available
Submitted by
kai_desu
-
9 years ago
2015-01-02 22:14
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
#Set-Cookie:\\s+(?<cookie>[^=]+=[^;]+)#m regex explanation
PCRE (PHP <7.3)
no description available
Submitted by
Igor
-
9 years ago
2015-01-02 02:49
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Ham radio callsign
PCRE (PHP <7.3)
Use part 1, 3 , 5 for establish the portable callsign like 1 = DL/ 2 = F5UII 3 = /QRP
Submitted by
F5UII (http://www.fuii.net)
-
9 years ago
2015-01-01 14:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
reference
PCRE (PHP <7.3)
reference pattern checking
Submitted by
karthikeyan
-
9 years ago
2014-12-31 13:03
1
...
594
595
596
597
598
599
600
...
630
VNC-58
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(
#
.
+
?
)
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
9 years ago
2014-12-24 14:35