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,020 community submitted regex patterns...
0
Extract root domain from URL
PCRE (PHP <7.3)
It will extract the root domain from any URL. This includes removing subdomains, www. and the slug.
Submitted by
randywolf244
-
3 years ago
0
Array shape documentation
Python
Matches array shape documentation comments.
Submitted by
anonymous
-
3 years ago
0
Match Multi groups
PCRE2 (PHP >=7.3)
Match Multi groups
Submitted by
anonymous
-
3 years ago
0
Excel ABS, SUM, AVG
Python
test
Submitted by
anonymous
-
3 years ago
0
Capture variable
Python
test
Submitted by
anonymous
-
3 years ago
1
/(# .*)(&𝗐𝖾𝗀𝗈)/𝗀𝗆
PCRE2 (PHP >=7.3)
/(# .*)(&𝗐𝖾𝗀𝗈)/𝗀𝗆
Submitted by
anonymous
-
3 years ago
-1
validade email
ECMAScript (JavaScript)
this regex validates e-mails. const isValid= .text(value)
Submitted by
anonymous
-
3 years ago
0
MD h1 change to block with anchor
PCRE2 (PHP >=7.3)
Find any lines starting with # and followed by anchor name with & and wrap it into html so that we start with this: Title &anchor and finish with something like this: ...
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Vimeo FIle
ECMAScript (JavaScript)
Viimeo file.
Submitted by
Stephen Nelson
-
3 years ago
0
Months (ID/ENG)
PCRE2 (PHP >=7.3)
.
Submitted by
Virtuozs
-
3 years ago
0
XWiki: Increase headings level
ECMAScript (JavaScript)
Makes 1st level headings the 2nd level etc. This comes handy when for example making an extra chapter from a part of an XWiki page. By-design, this regex also beautifies (normalizes) the headings syntax (like this regex).
Submitted by
pbodnar
-
3 years ago
0
XWiki: Decrease headings level
ECMAScript (JavaScript)
Makes 2nd level headings the 1st level etc. This comes handy when for example creating a new page from a part of an existing XWiki page. While this regex could also try to beautify (normalize) the headings at the same time, better use a dedicated regex for that.
Submitted by
pbodnar
-
3 years ago
0
Dimensions
PCRE2 (PHP >=7.3)
Regex to match dimensions
Submitted by
intern_of_the_year
-
3 years ago
0
XWiki: Beautify (normalize) headings
ECMAScript (JavaScript)
Beautifies (normalizes) headings of an XWiki page.
Submitted by
pbodnar
-
3 years ago
1
Fetch "text A (text B)" or "text A (text B (text C))"
PCRE2 (PHP >=7.3)
How do I extract then some text A, some text B and some text C if they are in the format some text A ( some text B ( some text C)) Please mind that in some cases may be only some text A ( some text B)...
Submitted by
anonymous
-
3 years ago
0
España - CIF = NIF jurídico (normativa a Sep 2021)
PCRE2 (PHP >=7.3)
Creo que no me he dejado ningún caso. Cuenta también con el caso en que los 2 primeros números son 00, que admite dígito de control de tipo letra sea cual sea la letra inicial (naturaleza jurídica).
Submitted by
Raúl Moreno Bello
-
3 years ago
(Last modified 3 years ago)
0
version and folder remove script line at html
ECMAScript (JavaScript)
version and folder remove script line at html
Submitted by
anonymous
-
3 years ago
0
Email Validation Pattern
Java 8
Email Validation Pattern
Submitted by
Aslam Anver
-
3 years ago
0
Host sanity check
PCRE2 (PHP >=7.3)
Super dumb sanity check for valid host
Submitted by
anonymous
-
3 years ago
0
Regex Test on Slashes
Python
A regex test for filepaths.
Submitted by
anonymous
-
3 years ago
1
...
192
193
194
195
196
...
901
Community Library Entry
0
Regular Expression
ECMAScript (JavaScript)
/
(
(?:
(?=
^\S
{8,}
$
)
(?:
(?=
\S
*
\d
)
(?=
\S
*
[
A
-
Z
]
)
(?=
\S
*
[
a
-
z
]
)
|
(?=
\S
*
\d
)
(?=
\S
*
[^
A
-
Za
-
z0
-
9
]
)
(?=
\S
*
[
a
-
z
]
)
|
(?=
\S
*
[^
A
-
Za
-
z0
-
9
]
)
(?=
\S
*
[
A
-
Z
]
)
(?=
\S
*
[
a
-
z
]
)
|
(?=
\S
*
\d
)
(?=
\S
*
[
A
-
Z
]
)
(?=
\S
*
[^
A
-
Za
-
z0
-
9
]
)
)
^\S
*
){8,}
)
/
Open regex in editor
Description
no description available
Submitted by
Luis Arias :D
-
9 years ago