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 11,880 community submitted regex patterns...
0
Math any kind of letter
PCRE2 (PHP >=7.3)
Just a quick example of the \p{L} pattern
Submitted by
anonymous
-
a year ago
0
Search Trailing Commas
PCRE (PHP <7.3)
Regex used for finding trailing commas. Use for troubleshooting PHP 7.2 Codes
Submitted by
anonymous
-
a year ago
0
Match HTML comments with nested comments
PCRE (PHP <7.3)
Even if this is not valid HTML, it's more to understand the concept of recursion in patterns. It was an answer to a Stack overflow question: https://stackoverflow.com/questions/75282404/remove-comments-from-some-generated-html-which-can-be-invalid-with-nested-commen The idea is to use PCRE's recur...
Submitted by
Patrick Janser
-
a year ago
0
log timestamp
Golang
extract time stamp from log entry
Submitted by
anonymous
-
a year ago
0
Capture optional HTML tag attributes in any order
PCRE2 (PHP >=7.3)
We often see some regular expressions to manipulate HTML instead of using a DOM parser. But well, in some cases we haven't got the parser or efficiency is a question of concern. In most cases I think the best is to use both together. First a simple and bullet-proof regex to extract data from the HTM...
Submitted by
Patrick Janser
-
a year ago
0
trim phone number
PCRE (PHP <7.3)
trim phone number
Submitted by
anonymous
-
a year ago
0
Youtube API V3 Video list convert duration
PCRE2 (PHP >=7.3)
Convert the YouTube API V3 videos list, duration of videos to separate numbers for calculations.
Submitted by
Bo
-
a year ago
0
Get path from any text
PCRE2 (PHP >=7.3)
Get path (windows style) from any type of text (error message, e-mail corps ...), quoted or not. THIS IS COMMENTED VERSION !_ to simple copy and use it, go https://regex101.com/r/zWGLMP Relative path are not supported...
Submitted by
nitrateag
-
a year ago
(Last modified a year ago)
0
Parcing2
PCRE (PHP <7.3)
aa
Submitted by
anonymous
-
a year ago
0
Extract any http https and any url form
PCRE (PHP <7.3)
This will help you to extract any URL inside your text
Submitted by
Abdullah Alweheid
-
a year ago
0
pythonize beautiful query
PCRE2 (PHP >=7.3)
pythonize beautiful query
Submitted by
anonymous
-
a year ago
0
wiki
PCRE2 (PHP >=7.3)
wiki parser
Submitted by
anonymous
-
a year ago
0
/^([a-z]).*\1$|^[a-z]{1}$/gm
PCRE2 (PHP >=7.3)
regex that will test string that begins and end with the same string character and also works if there is only one character in string
Submitted by
Ananya
-
a year ago
0
Match between two strings
PCRE2 (PHP >=7.3)
(?<=This is)(.*)(?=sentence)
Submitted by
anonymous
-
a year ago
0
Xml Element Attributes
PCRE2 (PHP >=7.3)
View attributes for an XML or HTML element
Submitted by
anonymous
-
a year ago
0
User-Agent
PCRE (PHP <7.3)
Parser
Submitted by
sn3kdev
-
a year ago
0
Twitter Question
PCRE2 (PHP >=7.3)
Gramática: S->E S->aA S->bB A->E A->bB...
Submitted by
anonymous
-
a year ago
0
c++ function signature
PCRE2 (PHP >=7.3)
c++ function signature
Submitted by
anonymous
-
a year ago
0
Tratamento DUE - DRAFT BL
PCRE2 (PHP >=7.3)
expressão pra verificar a presença da informação da DUE no Draft
Submitted by
anonymous
-
a year ago
0
اعتبارسنجی آدرس فارسی
PCRE2 (PHP >=7.3)
متن آدرس فارسی را به آرایه تبدیل می کند
Submitted by
anonymous
-
a year ago
1
...
573
574
575
576
577
...
594
Date: DD-MM-YYYY hh:mm:ss
18
Regular Expression
Recommended
PCRE (PHP <7.3)
/
^
(
0
[
1
-
9
]
|
1
\d
|
2
[
0
-
8
]
|
29
(?=
-
\d\d
-
(?!
1
[
01345789
]
00
|
2
[
1235679
]
00
)
\d\d
(?:
[
02468
]
[
048
]
|
[
13579
]
[
26
]
)
)
|
30
(?!
-02
)
|
31
(?=
-0
[
13578
]
|
-1
[
02
]
)
)
-
(
0
[
1
-
9
]
|
1
[
0
-
2
]
)
-
(
[
12
]
\d
{3}
)
(
[
01
]
\d
|
2
[
0
-
3
]
)
:
(
[
0
-
5
]
\d
)
:
(
[
0
-
5
]
\d
)
$
/
gm
Open regex in editor
Description
Validate and capture dateTime parts, includes validation for leap years, range 1000-2999. Fixed bug
Submitted by
Ka.
-
11 years ago