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,660 community submitted regex patterns...
7
10 upvotes, 3 downvotes (score 49.7%) (You must be signed in to vote)
Any positive integer except zero
PCRE (PHP <7.3)
no description available
Submitted by
Harsh
-
8 years ago
2015-08-27 10:04
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Search regex
PCRE (PHP <7.3)
/** this regex should match most cases where the user forgets to put an operator somewhere and add an OR, it still does not handle nested square brackets but those are invalid anyways this page has an explanation https://regex101.com/r/fF7wO1/2 * the way this regex grabs conflicting matches is b...
Submitted by
warnock
-
8 years ago
2015-08-26 17:22
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
valid email matching
PCRE (PHP <7.3)
Pattern matches mails in a single line with right syntax. Exceptions double dots in mail (..) will not handled.
Submitted by
Martin
-
8 years ago
2015-08-26 11:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
match all non golang files
PCRE (PHP <7.3)
match all names except those with '.go' extension
Submitted by
Ashish Gaurav
-
8 years ago
2015-08-26 10:23
18
31 upvotes, 13 downvotes (score 55.8%) (You must be signed in to vote)
Date Regex(DD/MM/yyyy)
PCRE (PHP <7.3)
no description available
Submitted by
alcaamado
-
8 years ago
2015-08-26 06:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
info@dein-perfekter-moment.de
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-26 06:11
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
小數點前後數字數量
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-26 02:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Bai 2
PCRE (PHP <7.3)
Phát hiện link website lạ trong trang web của mình. – Đầu vào: https://ok1.url.com http://ok2.url.com https://not.ok.temp.com http://not-ok.either.w3.com...
Submitted by
Nhat Hoang
-
8 years ago
2015-08-25 23:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Bai 1
PCRE (PHP <7.3)
Chỉ lấy ký tự trong ngoặc vuông []
Submitted by
Hoang
-
8 years ago
2015-08-25 22:59
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Remove updir tokens from url
PCRE (PHP <7.3)
Remove /../ recursively from urls
Submitted by
santiagoarizti@gmail.com
-
8 years ago
2015-08-25 22:06
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
...
521
522
523
524
525
526
527
...
583
Match a string that is equal to a string before a '='
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(?:
^
|
\s
)
(?'arg1'
[
a
-
z
]
+
)
=
(?P=arg1)
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-08-05 16:24