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...
1
number of spaces at beginning of lines
ECMAScript (JavaScript)
find the number of spaces at the beginning of lines in a file.
Submitted by
andy
-
9 years ago
2
test
PCRE (PHP <7.3)
test
Submitted by
anonymous
-
9 years ago
1
TEST 2
PCRE (PHP <7.3)
no description available
Submitted by
DBU
-
9 years ago
1
TEST 1
PCRE (PHP <7.3)
no description available
Submitted by
DBU
-
9 years ago
1
[Fixed] Parse all simple math expressions (decimal, negative, whole)
PCRE (PHP <7.3)
Includes +, -, /, *, and ^. Can parse decimals. Can parse negative whole numbers and decimals. Can parse parentheses. Used only for parsing math expressions using regex.
Submitted by
anonymous
-
9 years ago
0
Match everything between brackets, including brackets
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Match everything between brackets, including brackets
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
-2
Parse all simple math expressions (decimals, whole, negative)
PCRE (PHP <7.3)
-2.02^3(2+3.024)+3.14159-(45^23)/(19-4)
Submitted by
anonymous
-
9 years ago
1
teste
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
Version parsing
PCRE (PHP <7.3)
Version parsing from following format: ..build Gets 4 groups: major, minor, build and postfix (last two only of they present in input string) For example: 1.2.3456-SNAPSHOT gets major=1, minor=2, build=3456, postfix="SNAPSHOT"...
Submitted by
Ivkond
-
9 years ago
1
reddit username
PCRE (PHP <7.3)
no description available
Submitted by
l3d00m
-
9 years ago
1
wso list
Python
no description available
Submitted by
anonymous
-
9 years ago
1
Match slahses and numbers
ECMAScript (JavaScript)
Match all forward and backward slashes and numbers in a string. Usefull for obtaining only text chars from address.
Submitted by
Rado
-
9 years ago
0
Phone number
ECMAScript (JavaScript)
no description available
Submitted by
Vaseker
-
9 years ago
0
lookahead not match 'aa'
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
Simple global regex
Python
Regex for finding tempratures in a text
Submitted by
anonymous
-
9 years ago
1
Amazon.ca Order Total
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
-3
Remove special character at first position of string
PCRE (PHP <7.3)
This search for special character at first position in the string
Submitted by
anonymous
-
9 years ago
1
1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Extract values from hostname
ECMAScript (JavaScript)
no description available
Submitted by
Matthew Ledbetter
-
9 years ago
1
...
779
780
781
782
783
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(
(
https
?
:
)?
\/\/
)?
(
(
[
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)+
(
:
(
[
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)+
)?
@
)?
(
[
\d\w
]
[
-
\d\w
]
{0,253}
[
\d\w
]
\.
)+
[
\w
]
{2,63}
(
:
[
\d
]
+
)?
(
\/
(
[
-+_~.
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)*
)*
(
\?
(
&
?
(
[
-+_~.
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)
=
?
)*
)?
(
#
(
[
-+_~.
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)*
)?
/
gmi
Open regex in editor
Description
check for urls
Submitted by
naxmefy
-
3 years ago