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 13,620 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
strings between commas
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-03-03 20:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
find numeric value
PCRE (PHP <7.3)
find numeric value
Submitted by
anonymous
-
7 years ago
2017-03-03 20:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
simple mobile regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-03-03 14:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
faction name
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-03-03 13:47
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match multi-line comments
PCRE (PHP <7.3)
Comments of type /* ... */ are matched. All comments are matched, this can be usefull if you want delete them
Submitted by
Smiley32
-
7 years ago
2017-03-03 08:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Youtube video id from link
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-03-03 06:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
FFMPEG - Get Bitrate
PCRE (PHP <7.3)
no description available
Submitted by
DreamWave
-
7 years ago
2017-03-03 01:21
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
-
7 years ago
2017-03-02 21:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove Corrupt indents
PCRE (PHP <7.3)
Remove Corrupt indents
Submitted by
anonymous
-
7 years ago
2017-03-02 20:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find string collection by @
PCRE (PHP <7.3)
using in OData Api to search aliases.
Submitted by
anonymous
-
7 years ago
2017-03-02 16:21
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
valid domain format
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-03-02 07:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email Address
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-03-02 05:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
How to separate letters and digits from a string in php
PCRE (PHP <7.3)
$str = '12jan'; $arr = preg_split('/(? RO [1] => 123 )
Submitted by
Ionut M Ionete
-
7 years ago
2017-03-01 20:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
MMDP_regex_workshop_simple_zip_code_example
Python
no description available
Submitted by
ghukill
-
7 years ago
2017-03-01 16:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
CIF (Codigo de Indentificación Fiscal) - Spain
PCRE (PHP <7.3)
Spain Format CIF (Codigo de Indentificación Fiscal)
Submitted by
dagope
-
7 years ago
2017-03-01 10:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Better Decimal Number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-02-28 22:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ID at end of string
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-02-28 21:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Nth occurrence of word - pull single table out of HTML with a bunch of tables
PCRE (PHP <7.3)
3rd party generated HTML (Purchase Order) was rife with errors, so direct import was impossible. Decided to pull the particular table out of the HTML attachment, and then wrap that as "new" HTML for import into DOMDocument. PHP code: preg_match('/^(?:(?:(?!table).)*table){19}(.+?(?=table))/is', $ra...
Submitted by
Christopher Cilley
-
7 years ago
2017-02-28 17:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Swift Codes for any country
PCRE (PHP <7.3)
This will work for all swift codes, just eliminate the country names you don’t want to search for. The first 8 digits of a swift code determine the bank, the last 3 determine a specific branch. For Example CIBCCATTXXX would CIBC and the XXX is the branch.
Submitted by
anonymous
-
7 years ago
2017-02-28 16:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match cookie name pattern
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-02-28 13:59
1
...
450
451
452
453
454
455
456
...
681
JSON
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
{
\n
*
\s
*
(
\"
.
*
\"
\s
*
:
)
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
7 years ago
2016-12-31 16:28