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 6,400 community submitted regex patterns...
0
Getting Parts of URL
PCRE2 (PHP >=7.3)
https://stackoverflow.com/questions/27745/getting-parts-of-a-url-regex
Submitted by
anonymous
-
4 years ago
0
Match URL or URI strings
ECMAScript (JavaScript)
Reference: https://stackoverflow.com/a/34669019/369727
Submitted by
https://danlevy.net/
-
4 years ago
1
Signed numbers with optional decimal part (comma or dot)
PCRE2 (PHP >=7.3)
Signed numbers with optional decimal part (comma or dot)
Submitted by
ImAlbi57
-
4 years ago
1
Sınıfları Tek Tek seçme
Java 8
za
Submitted by
anonymous
-
4 years ago
0
Trailing dot removal after number sequence
ECMAScript (JavaScript)
The capture group returns only a number with a dot if it has decimal digits, otherwise it is treated as an integer. 1.1 => 1.1 1\. => 1
Submitted by
Stefa168
-
4 years ago
0
日志解析
PCRE2 (PHP >=7.3)
日志解析
Submitted by
vito
-
4 years ago
0
email address
ECMAScript (JavaScript)
email address regex
Submitted by
anonymous
-
4 years ago
0
Lookbehind
ECMAScript (JavaScript)
Example of how to pull a particular piece of the URL
Submitted by
DATA_GATA
-
4 years ago
0
"zoom" follow bots
PCRE2 (PHP >=7.3)
this is for finding all of the "zoom" follow bots on twitch
Submitted by
Math
-
4 years ago
0
Validate XML
PCRE2 (PHP >=7.3)
Validate XML
Submitted by
anonymous
-
4 years ago
0
v1.colName, v2.colName ==> or decode( v1.colName, v2.colName, 1, 0) = 0
PCRE2 (PHP >=7.3)
For Oracle DB, as it doesn't consider null != informed DATE, and considers null != null. For the WHERE clause. = 0 to get differences = 1 to get "sameness"...
Submitted by
R. Moreno
-
4 years ago
0
PHPDocumentor - Add missing @since tags in doc blocks
PCRE2 (PHP >=7.3)
This regular expression helps keeping the PHP documentation up to date by adding the @since tags in the doc block where there are none.
Submitted by
raaaahman
-
4 years ago
0
Alpha Numeric with International characters
PCRE2 (PHP >=7.3)
Alpha Numeric with International characters with space This matches any letter, number, or space in most languages. [...] -> Match with conditions [a|b] -> Match 'a' OR 'b'...
Submitted by
Dinesh Swami
-
4 years ago
0
笔试
Java 8
笔试字符串检查regex
Submitted by
bgst009
-
4 years ago
0
surrounded by regex
PCRE2 (PHP >=7.3)
surround a string by $$ chards
Submitted by
anonymous
-
4 years ago
0
surrounded by regex
PCRE2 (PHP >=7.3)
surrounded by regex
Submitted by
anonymous
-
4 years ago
0
css special characters
PCRE2 (PHP >=7.3)
The only special characters I've come across are ., :, /. Tailwind CSS uses all of them.
Submitted by
anonymous
-
4 years ago
0
UK National Insurance Number
PCRE2 (PHP >=7.3)
UK National Insurance Number, NINO
Submitted by
anonymous
-
4 years ago
0
Practice email validation
ECMAScript (JavaScript)
Solves the practice problem from https://www.sitepoint.com/learn-regex/
Submitted by
Nhi Mai-Do
-
4 years ago
0
telephone validator from FCC
ECMAScript (JavaScript)
passes freecodecamp's telephone validator
Submitted by
anonymous
-
4 years ago
1
...
178
179
180
181
182
...
320
Community Library Entry
0
Regular Expression
ECMAScript (JavaScript)
/
(?<year>
[
\d
]
{4}
)
-
(?<month>
0
[
1
-
9
]
|
1
[
1
-
2
]
)
-
(?<day>
0
[
1
-
9
]
|
[
1
-
2
]
[
0
-
9
]
|
3
[
0
-
1
]
)
T
(?<hour>
[
0
-
1
]
[
0
-
9
]
|
2
[
0
-
3
]
)
:
(?<minute>
[
0
-
5
]
[
0
-
9
]
)
:
(?<second>
[
0
-
5
]
[
0
-
9
]
)
(?:
Z
|
.
(?<millisecond>
[
0
-
9
]
{2,3}
)
)
/
gmi
Open regex in editor
Description
This will break the datetime string into it's individual parts and add them into named groups.
Submitted by
Tony Hume
-
4 years ago