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 12,280 community submitted regex patterns...
1
MobaXterm SSH session dump data
PCRE2 (PHP >=7.3)
Below regex pattern help to extract needful information from Portable export of SSH sessions. Although not complete, can help data extraction from export file.
Submitted by
anonymous
-
15 hours ago
1
Russian phone number (российские номера телефонов)
PCRE2 (PHP >=7.3)
A regular expression for searching for phone numbers in the Russian format, taking into account different ways of writing the number, including spaces, brackets and dashes. Регулярное выражение для поиска номеров телефонов Российского формата. Учитывает написание номера через пробел, скобки, тире и ...
Submitted by
https://t.me/ds_ivanov
-
17 hours ago
1
Factorization: Zero, Unit, Primes, or Composite?
.NET 7.0 (C#)
Description Inspects lines that contain only a character, let's say c, repeated n times. The name of the matching groups will tell you if n is 0, the unit 1, a prime number, or a composite number. Alternative ...
Submitted by
kevinhp
-
20 hours ago
1
Match the web URL
PCRE2 (PHP >=7.3)
Match the web URL, like https://xxx.com or xxx.com, not matching the email or the ip address
Submitted by
Hughie
-
2 days ago
1
96 Bit Decryption
PCRE2 (PHP >=7.3)
Part 2 of my post.
Submitted by
Dave Cummins
-
3 days ago
1
96 Bit Encryption
PCRE2 (PHP >=7.3)
96 Bit encryption by using a library. Possible to extend this beyond 96 if you have the time! Look at my other post to see how to decrypt. Based on using a library of values.
Submitted by
Dave Cummins
-
3 days ago
1
Chemical equation one side
PCRE2 (PHP >=7.3)
Matches one side of a chemical equation. So for ` 2HCl + 2Na → 2NaCl + H2 ` it would match each side individually with one newline between each 2HCl + 2Na and 2NaCl + H2
Submitted by
viktorashi
-
5 days ago
1
Antimony CRN definition
PCRE2 (PHP >=7.3)
Describes how the first few lines of an Antimony (for Tellurium) CRN definition should look like
Submitted by
viktorashi
-
5 days ago
1
Trim Slashes
PCRE2 (PHP >=7.3)
Remove leading and trailing slashes
Submitted by
anonymous
-
12 days ago
1
SELECT
PCRE2 (PHP >=7.3)
/^select\s+(?.+?)\s+from\s+(?\S+)\s*(?:where\s+(?[\d\w= ><!]+))?;?$/gmi
Submitted by
anonymous
-
14 days ago
1
regex for mobile numbers
PCRE2 (PHP >=7.3)
regex to validate mobile numbers all over the world
Submitted by
anonymous
-
15 days 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
-
21 days ago
1
YouTube Regex 2024+
PCRE2 (PHP >=7.3)
Tested in 2024 with various share/embed methods on YouTube video page
Submitted by
doseofted
-
21 days ago
1
Validación de un nombre o un apellido
PCRE2 (PHP >=7.3)
Antonio-Marcos O'Higgins González
Submitted by
Pablo
-
23 days ago
1
RUT chileno sin puntos
PCRE2 (PHP >=7.3)
15000000-9
Submitted by
Pablo
-
23 days ago
1
RUT chileno con puntos
PCRE2 (PHP >=7.3)
15.000.000-9
Submitted by
Pablo
-
23 days ago
1
Número de motor
PCRE2 (PHP >=7.3)
ABC123DEF12A
Submitted by
Pablo
-
23 days ago
1
Teléfono chileno
PCRE2 (PHP >=7.3)
912345678 ó +56912345678 ó 56912345678
Submitted by
Pablo
-
23 days ago
1
Correo eletrónico
PCRE2 (PHP >=7.3)
test@g.cn
Submitted by
Pablo
-
23 days ago
1
Validación de año desde 1900
PCRE2 (PHP >=7.3)
1900 2024
Submitted by
Pablo
-
23 days ago
1
2
3
...
614
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
(
[^
<>()
\[\]\\
.,;:
\s
@"
]
+
(
\.
[^
<>()
\[\]\\
.,;:
\s
@"
]
+
)*
)
|
(
"
.
+
"
)
)
@
(
(
\[
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
]
)
|
(
(
[
a
-
zA
-
Z
\-
0
-
9
]
+
\.
)+
[
a
-
zA
-
Z
]
{2,}
)
)
$
/
gm
Open regex in editor
Description
Email test
Submitted by
anonymous
-
2 years ago