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...
1
SELECT
PCRE2 (PHP >=7.3)
/^select\s+(?.+?)\s+from\s+(?\S+)\s*(?:where\s+(?[\d\w= ><!]+))?;?$/gmi
Submitted by
anonymous
-
2 months ago
1
regex for mobile numbers
PCRE2 (PHP >=7.3)
regex to validate mobile numbers all over the world
Submitted by
anonymous
-
2 months ago
1
Credit Cart Prediction & Validation
ECMAScript (JavaScript)
Credit Card Carrier Prediction This regex is specifically designed to predict from the first few characters which carrier type the credit card number is.
Submitted by
anonymous
-
2 months ago
(Last modified 2 months ago)
1
Match a^nb^n
Python
Matches some number of a's followed by the same number of b's, usually written as a^nb^n for all natural numbers n. For regular expressions as formally defined in formal language theory, this is impossible, but modern day regex engines can do far more than match just regular languages. Note that eve...
Submitted by
FieryIceStickie
-
2 months ago
1
SVG viewbox parser
Python
for finding and extracting numbers from the viewbox attribute. see also my generalized SVG number regex. v2: added support for scientific notation
Submitted by
riedler
-
2 months ago
(Last modified 2 months ago)
1
SVG number syntax
Python
for correctly parsing numbers in SVG attributes like path d or viewBox with regex v2: added support for scientific notation
Submitted by
riedler
-
2 months ago
(Last modified 2 months ago)
1
Firsname with all latin characters, hyphen and single quote
PCRE2 (PHP >=7.3)
Allowing all firsnames written with Latin text like Björn or D'Mariüsz
Submitted by
ali benabdelaziz
-
2 months ago
1
YouTube Regex 2024+
PCRE2 (PHP >=7.3)
Tested in 2024 with various share/embed methods on YouTube video page
Submitted by
doseofted
-
2 months ago
1
ISO 8601 DURATION - Terraform Validation
Golang
This is made to validate an ISO 8601 input in a Terraform variable validation block: validation { condition = can(regex("^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+S)?)?$", var.value)) error_message = "The value must be a valid ISO 8601 duration string representing time. (e.g. PT...
Submitted by
anonymous
-
2 months ago
1
Validación de un nombre o un apellido
PCRE2 (PHP >=7.3)
Antonio-Marcos O'Higgins González
Submitted by
Pablo
-
2 months ago
1
RUT chileno sin puntos
PCRE2 (PHP >=7.3)
15000000-9
Submitted by
Pablo
-
2 months ago
1
RUT chileno con puntos
PCRE2 (PHP >=7.3)
15.000.000-9
Submitted by
Pablo
-
2 months ago
1
Número de motor
PCRE2 (PHP >=7.3)
ABC123DEF12A
Submitted by
Pablo
-
2 months ago
1
Teléfono chileno
PCRE2 (PHP >=7.3)
912345678 ó +56912345678 ó 56912345678
Submitted by
Pablo
-
2 months ago
1
Correo eletrónico
PCRE2 (PHP >=7.3)
test@g.cn
Submitted by
Pablo
-
2 months ago
1
Validación de año desde 1900
PCRE2 (PHP >=7.3)
1900 2024
Submitted by
Pablo
-
2 months ago
1
Patente chilena sin guion
PCRE2 (PHP >=7.3)
ABCD12 o AB1234
Submitted by
Pablo
-
2 months ago
1
Fecha formato europeo
PCRE2 (PHP >=7.3)
Validación de fecha de formato europeo 13/12/2024
Submitted by
Pablo
-
2 months ago
1
Fecha ISO 8601
PCRE2 (PHP >=7.3)
Validación para fechas en formato ISO 8601 como 2024-12-13
Submitted by
Pablo
-
2 months ago
(Last modified 2 months ago)
1
Slash Separated Numbers
Golang
...
Submitted by
Anonymous
-
2 months ago
1
2
3
4
5
...
901
Community Library Entry
2
Regular Expression
PCRE2 (PHP >=7.3)
/
(
(
(
[
A
-
Za
-
z
]
{3,9}
:
(?:
\/\/
)?
)
(?:
[
-;:&=
\+\$
,
\w
]
+
@
)?
[
A
-
Za
-
z0
-
9.-
]
+
|
(?:
www
.
|
[
-;:&=
\+\$
,
\w
]
+
@
)
[
A
-
Za
-
z0
-
9.-
]
+
)
(
:
[
0
-
9
]
{0,5}
)?
(
#
[
\w
]
*
)?
(
(?:
\/
[
\+
~%
\/
.
\w
\-
_
]
*
)?
\?
?
(?:
[
-
\+
=&;%@.
\w
_
]
*
)
#
?
(?:
[
.
\!\/\\
w
]
*
)
)?
)
/
ig
Open regex in editor
Description
Port
https://regex101.com/library/cX0pJ8
to PCRE2 (PHP >= 7.3)
Submitted by
semivori
-
4 years ago