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 9,420 community submitted regex patterns...
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
SRT (SubRip) Parser
PCRE (PHP <7.3)
Matches id, timecode and text for multiple subtitles. Make sure the source ends with a blank line to capture the last subtitle.
Submitted by
Fergo
-
10 years ago
2014-01-11 19:33
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
erferf
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2014-01-11 06:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
rfrf
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2014-01-11 06:34
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Russian mobile number normilizer (dumb)
PCRE (PHP <7.3)
no description available
Submitted by
fullpipe
-
10 years ago
2014-01-04 16:01
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Match US Currency Amount
PCRE (PHP <7.3)
Group 1 has dollar amount with or without commas, Group 4 has optional cents.
Submitted by
anonymous
-
10 years ago
2014-01-03 17:29
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Get dynamic parameters from an URL
PCRE (PHP <7.3)
Gets the parameters (how many you want) from a url and organize into groups
Submitted by
Caio Oliveira
-
10 years ago
2014-01-02 18:54
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
tags, tags in quotes
PCRE (PHP <7.3)
#day tralalala #"day" tralalala #'beautiful_day'
Submitted by
voodoo free.dev.ua@gmail.
-
10 years ago
2013-12-24 17:04
483
1566 upvotes, 1083 downvotes (score 57.2%) (You must be signed in to vote)
regex101.com id grabber
PCRE (PHP <7.3)
grabs the ID for the regex101.com permalink to code
Submitted by
chris mccoy
-
10 years ago
2013-12-12 13:09
(Last modified 4 months ago)
2023-07-19 16:25
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Grab text in double square brackets (excluding triple)
PCRE (PHP <7.3)
no description available
Submitted by
Petah
-
10 years ago
2013-12-12 01:54
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Check SQL Insert Into
PCRE (PHP <7.3)
no description available
Submitted by
MelRight
-
10 years ago
2013-12-07 16:55
8
18 upvotes, 10 downvotes (score 45.8%) (You must be signed in to vote)
Date time Advanced
PCRE (PHP <7.3)
no description available
Submitted by
Mr.Neutro
-
10 years ago
2013-12-03 19:19
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Date time
PCRE (PHP <7.3)
no description available
Submitted by
Mr.Neutro
-
10 years ago
2013-12-03 19:12
5
9 upvotes, 4 downvotes (score 42.4%) (You must be signed in to vote)
All href in a tag
PCRE (PHP <7.3)
Find all href in a tag
Submitted by
Miron Yanovskiy
-
10 years ago
2013-12-03 11:50
9
67 upvotes, 58 downvotes (score 44.9%) (You must be signed in to vote)
Youtube ID match
PCRE (PHP <7.3)
This regex will match any Youtube video ID thrown at it and return one capturing group containing the ID.
Submitted by
Jacob Overgaard
-
10 years ago
2013-11-28 13:30
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Split Date
PCRE (PHP <7.3)
no description available
Submitted by
Arun Kumar Sekar
-
10 years ago
2013-11-27 11:37
1
6 upvotes, 5 downvotes (score 28%) (You must be signed in to vote)
Number, comma and dot
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-11-26 11:26
(Last modified 4 months ago)
2023-07-25 10:39
9
15 upvotes, 6 downvotes (score 50%) (You must be signed in to vote)
Removing an XML Nodes namespace prefix from a XML string wit
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-11-23 16:21
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Remove namespaces
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-11-23 15:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
saja
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-11-15 10:04
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Dotted-decimal IPv4 address
PCRE (PHP <7.3)
Validates an IPv4 address for use as a URI host as defined in RFC-3986.
Submitted by
ezzatron
-
10 years ago
2013-11-15 09:18
1
...
465
466
467
468
469
470
471
Indian Phone Numbers!
1
7 upvotes, 6 downvotes (score 29.1%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(
\+
)
(?(1)
)
\d
{1,3}
?
[
-
]
?
\d
{10}
$
|
^
(
[^
0
]
)
(?(1)
)
\d
{9}
?
$
|
^
(
[
0
]
)
(?(1)
)
\d
{10}
?
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
Prateek Jain
-
8 years ago
2015-06-02 15:16