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
Most upvotes
Most downvotes
Highest Score
Lowest Score
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 18,040 community submitted regex patterns...
2
Simple @user replacement
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
-2
HTML <script> regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Year regexp
PCRE (PHP <7.3)
regexp for year filtering
Submitted by
anonymous
-
9 years ago
7
Date validation
ECMAScript (JavaScript)
Besides leap year handling, this takes care of date validation in the yy-mm-dd format.
Submitted by
anonymous
-
9 years ago
0
IP V4 with leading zero values
PCRE (PHP <7.3)
no description available
Submitted by
shA.t
-
9 years ago
1
Extract jsfiddle links
PCRE (PHP <7.3)
Extract jsfiddle links
Submitted by
Shrinivas Shukla
-
9 years ago
0
Registration Email Address
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
url and path match with or without http|https
PCRE (PHP <7.3)
this is the most perfect pattern I reach for url with query or anchor
Submitted by
Gehad Mohamed
-
9 years ago
1
Po box addresses
ECMAScript (JavaScript)
exludes all address with po box
Submitted by
paulo.castro48@gmail.com
-
9 years ago
4
url
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
Single lone digits
PCRE (PHP <7.3)
Find single digits that are not part of an integer. For example, "27" should not match, but "27.1" will match the "1". "27.11" won't match.
Submitted by
Conan Dombroski
-
9 years ago
0
/[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Match HTTP error code
Python
no description available
Submitted by
anonymous
-
9 years ago
2
python:S117
PCRE (PHP <7.3)
Local variable and function parameter names should comply with a naming convention
Submitted by
anonymous
-
9 years ago
0
Nickname
PCRE (PHP <7.3)
Nickname validation. Only: letters _ One line. Tested with RoR
Submitted by
Paramoshkin Andrew
-
9 years ago
0
add colon between hours and minutes to time (24h system)
PCRE (PHP <7.3)
This expression converts any 3- or 4 digit timevalue to a value with colon between hours and minutes. So 345 is converted to 3:45 and 1500 is converted to 15:00
Submitted by
Patrick Sinke
-
9 years ago
0
Facebook url regex
PCRE (PHP <7.3)
no description available
Submitted by
Devs Devaras
-
9 years ago
-3
Facebook url regex
PCRE (PHP <7.3)
no description available
Submitted by
Devs Devaras
-
9 years ago
1
ServiceNow - Retrieve text from an Email
ECMAScript (JavaScript)
retrieve multiple lines from an email body.
Submitted by
Evan Williams
-
9 years ago
0
Phone validate
ECMAScript (JavaScript)
Validate Phone number even if contain country code
Submitted by
Jorge Cervantes
-
9 years ago
1
...
825
826
827
828
829
...
902
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
(
var
\s
|)
\s
*
\w
+
\s
+
=
\s
+
require
\(\'
[
\w
.
\/
]
*
sass
[
\w
.
\/
]
*
\'\)
;
*
\s
*
/
g
Open regex in editor
Description
Uses a single string to match any node require variables
Submitted by
amird and andyt
-
9 years ago