Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 14,060 community submitted regex patterns...
1
http://stackoverflow.com/a/34526907/3936440
PCRE (PHP <7.3)
no description available
Submitted by
ViRuSTriNiTy
-
9 years ago
1
Find Comments or Commentblocks in Code
PCRE (PHP <7.3)
Find Comments starting with # or //. Also finds Commentblocks starting with /* and ending with */.
Submitted by
Candyman1332
-
9 years ago
1
0755462021
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Facebook ID in Links or Widgets
PCRE (PHP <7.3)
Find the ID/name of facebook users/pages in widgets, or links.
Submitted by
anonymous
-
9 years ago
1
ABC#
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
if else statement in C++
PCRE (PHP <7.3)
match if else statement in C++
Submitted by
Денис Суховерхов
-
9 years ago
1
ternary operator in C++
PCRE (PHP <7.3)
match ternary operator in C++
Submitted by
Денис Суховерхов
-
9 years ago
1
dd-mmm-yyyy javascript regex
PCRE (PHP <7.3)
29-Dec-2015
Submitted by
Abhijeet Joshi
-
9 years ago
0
switch case statemen in C++
PCRE (PHP <7.3)
Match switch case statemen in C++
Submitted by
Денис Суховерхов
-
9 years ago
1
gitlab project repos
PCRE (PHP <7.3)
subdirectory only
Submitted by
anonymous
-
9 years ago
1
sélection entre 2 tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
IP address a.b.c.d form with range from 0 to 255 for each letters
Python
Are you pissed off with your regular expression homework? well then. here is the answer. ^([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))\.([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))\.([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))\.([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))$
Submitted by
Abdulaziz
-
9 years ago
1
Simple date validation
PCRE (PHP <7.3)
Regex validating yyyy-mm-dd or dd-mm-yyyy
Submitted by
anonymous
-
9 years ago
0
Find missing space around operators (=, +, -, *, /)
Python
no description available
Submitted by
rugk
-
9 years ago
1
Search for missing space around operator (=, +, -)
Python
In this case it is only =, but you can easily modify it to add more operators.
Submitted by
rugk
-
9 years ago
2
Extract .mp3 url
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
убрать все и кривой плюс
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
reges for validation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
Detecting numbers
PCRE (PHP <7.3)
signed or unsigned numbers with exponents or not
Submitted by
Mohammed Yehia
-
9 years ago
1
qwert1
PCRE (PHP <7.3)
6 character with 1 number and alphabet
Submitted by
anonymous
-
9 years ago
1
...
590
591
592
593
594
...
703
Failing regex which works in Perl
0
Regular Expression
PCRE (PHP <7.3)
/
^
(?!
#
)
.
*
example
.
*
/
g
Open regex in editor
Description
Goal is match example lines which are not comments.
Submitted by
anonymous
-
10 years ago