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 2,940 community submitted regex patterns...
1
Validación de un nombre o un apellido
PCRE2 (PHP >=7.3)
Antonio-Marcos O'Higgins González
Submitted by
Pablo
-
13 hours ago
1
RUT chileno sin puntos
PCRE2 (PHP >=7.3)
15000000-9
Submitted by
Pablo
-
13 hours ago
1
RUT chileno con puntos
PCRE2 (PHP >=7.3)
15.000.000-9
Submitted by
Pablo
-
13 hours ago
1
Número de motor
PCRE2 (PHP >=7.3)
ABC123DEF12A
Submitted by
Pablo
-
13 hours ago
1
Teléfono chileno
PCRE2 (PHP >=7.3)
912345678 ó +56912345678 ó 56912345678
Submitted by
Pablo
-
13 hours ago
1
Correo eletrónico
PCRE2 (PHP >=7.3)
test@g.cn
Submitted by
Pablo
-
13 hours ago
1
Validación de año desde 1900
PCRE2 (PHP >=7.3)
1900 2024
Submitted by
Pablo
-
13 hours ago
1
Patente chilena sin guion
PCRE2 (PHP >=7.3)
ABCD12 o AB1234
Submitted by
Pablo
-
14 hours ago
1
Fecha formato europeo
PCRE2 (PHP >=7.3)
Validación de fecha de formato europeo 13/12/2024
Submitted by
Pablo
-
14 hours ago
1
Fecha ISO 8601
PCRE2 (PHP >=7.3)
Validación para fechas en formato ISO 8601 como 2024-12-13
Submitted by
Pablo
-
14 hours ago
(Last modified 14 hours ago)
1
PCRE2 (PHP >=7.3)
PCRE2 (PHP >=7.3)
Purpose: This is supposed to be a learning process. The first 1-9 tasks are supposed to be done with using "standard" regex, ie, teach the user to use \s, \w, \d, aswell as backrefs and similar basic things. Later down the road, at task 10-13 we start introducing them to lookarounds. These are fairl...
Submitted by
An0nym0us
-
21 hours ago
1
scam_4
PCRE2 (PHP >=7.3)
In an HTML page, replace the text micro with µ. Oh, and don't screw up the code: don't replace inside or &entities;
Submitted by
anonymous
-
a day ago
1
scam_20
PCRE2 (PHP >=7.3)
Validate a line in quotes. Return one (and only one) backreference with the text. ie: quoted text from "quoted text". Note: a \ escapes any char, so \" is a valid escape.
Submitted by
anonymous
-
a day ago
1
scam_19
PCRE2 (PHP >=7.3)
Use substitution to put commas in all numbers to separate the thousands. ie: 12345678 → 12,345,678. The number could be in a sentence, and there may be more than one number in the sentence.
Submitted by
anonymous
-
a day ago
1
scam_18
PCRE2 (PHP >=7.3)
Replace every other character if it's a \d with * (only those in even positions: 2, 4, 6, etc). Example: a1b2cde3g45hi6 should become abcdeg4hi6
Submitted by
anonymous
-
a day ago
1
Validating IP V4
PCRE2 (PHP >=7.3)
VALIDATING IP V4 1.1.1.1 2.2.2.2 3.3.3.3 4.4.4.4 5.5.5.5...
Submitted by
An0nym0us
-
a day ago
1
Test
PCRE2 (PHP >=7.3)
This is a test
Submitted by
anonymous
-
a day ago
1
Quiz_9_Match_An_Email
PCRE2 (PHP >=7.3)
Verify that a given e-mail address is valid. We all know how complex emails are, but despite this, let's give it a try and see what we can come up with. You could start by trying to match contact@regex101.com (denoted as @.).
Submitted by
anonymous
-
a day ago
1
Quiz_10_Followed_by_#
PCRE2 (PHP >=7.3)
For every occurrence of the char #, match the previous character and save it in a group (backreference). Example: for the text "a#bc# -#", set backreferences with a, c and -. You are not allowed to consume the hash character.
Submitted by
anonymous
-
a day ago
1
Quiz_11_Validate_Floating_Point_Number
PCRE2 (PHP >=7.3)
Check if a floating point number (e.g. 3.14159) is in a valid format.
Submitted by
anonymous
-
a day ago
1
2
3
...
147
Community Library Entry
1
Regular Expression
PCRE2 (PHP >=7.3)
/
\A
[^
,
]
*
(?=
,
)
[^
,
]
*
(?=
,
)
|
(?<=
,
)
[^
,
]
*
|
[^
,
]
+
\Z
/
gm
Open regex in editor
Description
Parse common separated value
Submitted by
Iulian Fecioru
-
2 months ago