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
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 17,580 community submitted regex patterns...
1
Number Expr
ECMAScript (JavaScript)
A "raw" expression matching numbers; anything from a simple 123 to -123,456.78e90 will be matched. Note: this may be vulnerable to ReDoS attacks when long multiline entries are available & a few hundered (or thousand depending on the length of the input) steps is a problem; check the Regex Debugger...
Submitted by
expo.moe
-
16 days ago
(Last modified 16 days ago)
1
Even or uneven
PCRE2 (PHP >=7.3)
matches if the string is an even integer
Submitted by
Holz
-
17 days ago
1
first
PCRE2 (PHP >=7.3)
good
Submitted by
anonymous
-
18 days ago
1
T-SQL find text blocks in script
PCRE2 (PHP >=7.3)
Finds the text blocks in a t-sql (tsql) script
Submitted by
Paw Jershauge
-
19 days ago
1
T-SQL find comments in script
.NET 7.0 (C#)
Finds the comments in a t-sql (tsql) script
Submitted by
Paw Jershauge
-
19 days ago
1
T-SQL find comments in script
PCRE2 (PHP >=7.3)
Converts the outcome from an SQL Agent Log (one liner) to multi lines, for easy read
Submitted by
Paw Jershauge
-
19 days ago
(Last modified 19 days ago)
1
Date regex
PCRE2 (PHP >=7.3)
Date regex
Submitted by
anonymous
-
20 days ago
1
INI Parser
.NET 7.0 (C#)
This regular expression has the following features that make it a convenient tool for working with text data. Ignoring syntax errors__ The regular expression is able to ignore syntax errors whenever possible. This allows you to handle data with formatting errors without losing important information....
Submitted by
Pavel Bashkardin
-
20 days ago
1
Missing opening bracket
PCRE2 (PHP >=7.3)
Flags the missing opening bracket.
Submitted by
anonymous
-
21 days ago
1
Extract Amount
PCRE2 (PHP >=7.3)
problem satatement is to get all the amount despite of inconsistencies in comma or dollar sign also I need to exclude year from that (if no pattern can be made asssume to get all the amount greater than 3000)
Submitted by
Alpha
-
21 days ago
1
Get decimal point amount from amount string with currency symbol
PCRE2 (PHP >=7.3)
Get decimal point amount from amount string with currency symbol
Submitted by
anonymous
-
21 days ago
1
ISO 8601 Duration Regex
PCRE2 (PHP >=7.3)
Duration regular expression as per https://en.wikipedia.org/wiki/ISO_8601 PnYnMnDTnHnMnS or PnW Examples: P1Y1M1DT1H1M1S P1M - 1 month...
Submitted by
Sharath Malladi
-
21 days ago
(Last modified 21 days ago)
1
PrivtBank Receipt Parser
.NET 7.0 (C#)
PrivtBank Receipt Parser
Submitted by
anonymous
-
23 days ago
(Last modified 23 days ago)
1
PrivtBank Receipt Parser vx520
.NET 7.0 (C#)
PrivtBank Receipt Parser vx520
Submitted by
anonymous
-
23 days ago
(Last modified 23 days ago)
1
fisrst regex
PCRE2 (PHP >=7.3)
test
Submitted by
anonymous
-
24 days ago
1
Post-1987 Irish Vehicle Registration Plates
PCRE2 (PHP >=7.3)
Validates Irish Vehicle Registration Plates to S.I. No. 318/1992 - Vehicle Registration and Taxation Regulations, 1992 (as amended). Also validates modern 3 digit year identifier (introduced in 2013).
Submitted by
James Pelow
-
24 days ago
1
Definitely going to hell for this one.
PCRE2 (PHP >=7.3)
Yup...
Submitted by
BitesizedLion
-
24 days ago
1
CRON time expression validation
PCRE2 (PHP >=7.3)
Credit to Juarez and Slava who collectively derived the expression below here: https://stackoverflow.com/questions/14203122/create-a-regular-expression-for-cron-statement/63729682#63729682 For more in depth explanation see: https://gist.github.com/Aterfax/401875eb3d45c9c114bbef69364dd045
Submitted by
Aterfax
-
25 days ago
(Last modified 25 days ago)
1
CSI Breakdown V5
ECMAScript (JavaScript)
Breaks out CSI numbers for proper reformat
Submitted by
anonymous
-
a month ago
1
Date formatting
PCRE2 (PHP >=7.3)
Format Date from different input
Submitted by
fpreppo
-
a month ago
1
2
3
4
...
879
Extract registration and model
0
Regular Expression
ECMAScript (JavaScript)
/
^
(
[
A
-
Z
]
-
[
A
-
Z0
-
9
]
{4}
)
_
(
[
A
-
Za
-
z0
-
9
]
+
(?:
_
)?
(?:
[
A
-
Za
-
z0
-
9
]
+
)
_
[
A
-
Za
-
z0
-
9
]
+
(?:
-
[
A
-
Za
-
z0
-
9
]
*
)?
)
/
Open regex in editor
Description
Capture registration and aircraft model
Submitted by
Federico Villa
-
2 years ago
(Last modified 2 years ago)