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,540 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Variable instantiation
PCRE (PHP <7.3)
This matched any instantation of variable in some programming languages
Submitted by
ZKrolikowski
-
8 years ago
2015-08-25 20:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Capture YouTube Video ID
PCRE (PHP <7.3)
get video id from any version of youtube url
Submitted by
Kevin Chappell
-
8 years ago
2015-08-25 20:38
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
remove texto entre <>
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-25 20:16
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
match wordpress plugins [plugin_name ...]...[/plugin]
PCRE (PHP <7.3)
no description available
Submitted by
chris backhouse
-
8 years ago
2015-08-25 10:46
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-25 08:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Einzelne Zeichenkette ohne führenden Unterstich
PCRE (PHP <7.3)
no description available
Submitted by
Christoph Raschke
-
8 years ago
2015-08-25 07:33
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Valida RFC mexicano
PCRE (PHP <7.3)
valida el formato del registro federal de contribuyentes de México.
Submitted by
Rogelio
-
8 years ago
2015-08-24 22:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
LTI Course Mask RegEx
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-24 18:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match valid pairwise braces in text
PCRE (PHP <7.3)
The string '{}' is valid while '{{}' is invalid as well as '}{'. Now, is this one valid: '{{{{v{a{l{{i{d or }i}}}n}v}}al}i}d?' ?
Submitted by
nowox
-
8 years ago
2015-08-24 14:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Ebay
PCRE (PHP <7.3)
no description available
Submitted by
Sasan
-
8 years ago
2015-08-23 20:43
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
OpenSSL certificates ASCII match all in chain
PCRE (PHP <7.3)
Match all certificate in a chain from a OpenSSL s_client output. Need for this come from a script that should be able to verify the root CA of a URL.
Submitted by
Evgeni Simeonov
-
8 years ago
2015-08-23 20:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
second life
PCRE (PHP <7.3)
sim regex
Submitted by
tez
-
8 years ago
2015-08-23 10:47
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Strip i/b tags of attributes
PCRE (PHP <7.3)
no description available
Submitted by
Callum Barclay
-
8 years ago
2015-08-22 23:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Botanical Sciences
PCRE (PHP <7.3)
Grupo Autores
Submitted by
anonymous
-
8 years ago
2015-08-22 20:59
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
as
PCRE (PHP <7.3)
as
Submitted by
as
-
8 years ago
2015-08-22 14:26
8
17 upvotes, 9 downvotes (score 46.2%) (You must be signed in to vote)
Alphanumeric and Spaces
PCRE (PHP <7.3)
Alow alphanumeric characters and spaces
Submitted by
JTN
-
8 years ago
2015-08-22 06:46
(Last modified 2 months ago)
2023-07-20 10:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Combined Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-21 22:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
PHPunit AssertEquals from AssertTrue
PCRE (PHP <7.3)
Replaces all occurrences of AssertTrue(a == b); in a file with AssertEquals(a,b), which allows for more information in the test.
Submitted by
Chandler Swift
-
8 years ago
2015-08-21 16:40
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
match all html tags
PCRE (PHP <7.3)
http://haacked.com/archive/2004/10/25/usingregularexpressionstomatchhtml.aspx/
Submitted by
anonymous
-
8 years ago
2015-08-21 16:03
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
WindowsUpdate.log Line Breaker
PCRE (PHP <7.3)
This regex defines the end and the beginning of a WindowsUpdate.log event.
Submitted by
Dion Pezzimenti
-
8 years ago
2015-08-20 22:50
1
...
516
517
518
519
520
521
522
...
577
Registration Email Address
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(
[
-
\w
]
|
[
-
\w
]
[
-.
\w
]
*
[
-
\w
]
)
@
(
[
-a
-
zA
-
Z0
-
9
]
+
\.
)+
[
-a
-
zA
-
Z0
-
9
]
{2,4}
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-07-24 05:34