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 5,940 community submitted regex patterns...
0
name of variable being assigned to a specific value
PCRE2 (PHP >=7.3)
name of variable being assigned to a specific value
Submitted by
Lesley Chang
-
2 years ago
2
Dice-Throwing notation
PCRE2 (PHP >=7.3)
You can express the required dice-throwing as usual: 1d10, 2d6, 3d8... The first part (dice number) is mandatory. So, notations like "D10" are not computed, and they must be written as 1d10 The dice number may be expressed as [number]o[number]. For example: 1o3d10. That will mark to implement a Gaus...
Submitted by
Hermes
-
2 years ago
(Last modified 2 years ago)
0
Extract, match domain from URL
PCRE2 (PHP >=7.3)
Worryin’ about you is like wonderin’ if the sun gonna come up.
Submitted by
@seocringe
-
2 years ago
0
Xerox Product Page
ECMAScript (JavaScript)
regex to match a product page url
Submitted by
anonymous
-
2 years ago
0
Illegal characters for directory name
Java 8
Pattern matches to all illegal characters in directory name. Can be useful for normalizing the folder name before creating it
Submitted by
Vlad Yevtushenko
-
2 years ago
0
20220708 Complex Regular Expression for testing purpose
PCRE2 (PHP >=7.3)
The description of css testing regular expression, It was created to test how social snippet works on Regex101. We''ll it soon in Slack, Facebook, Tweeter and other popular sharing services. Who knows which resalts we'll get. 2 The description of css testing regular expression, It was created to tes...
Submitted by
Anton Author Name Siluyanov
-
2 years ago
0
get package and version from path after several words
PCRE2 (PHP >=7.3)
get package and version from path after several words
Submitted by
anonymous
-
2 years ago
0
Find Phone numbers on uncommented lines
ECMAScript (JavaScript)
Nothing at the moment
Submitted by
Bentejuy
-
2 years ago
0
TI dis6x to "binary as ASCII"
PCRE2 (PHP >=7.3)
Automated version of process described here Takes TI dis6x disassembly output Removes leading address and spaces Rotates endianess Presents as "binary as ASCII" blob ready for insertion with HEX edit tool...
Submitted by
https://github.com/ELynx
-
2 years ago
(Last modified 2 years ago)
0
date format YYYY-MM-DD
ECMAScript (JavaScript)
to detect date format YYYY-MM-DD ony starting from 1900
Submitted by
anonymous
-
2 years ago
0
get package and version from path after several words
PCRE2 (PHP >=7.3)
skip a word initially then get the package from pair of slashes
Submitted by
anonymous
-
2 years ago
0
Password with a-z, A-Z, 0-9 or special character
ECMAScript (JavaScript)
at least 1 lower-case character at least 1 upper-case character at least 1 number or special character
Submitted by
Wemo
-
2 years ago
0
Email
PCRE2 (PHP >=7.3)
Email
Submitted by
anonymous
-
2 years ago
0
Twig Translation Regex
PCRE2 (PHP >=7.3)
Twig Translation Regex
Submitted by
selcuk mart <admin@hostingdevi.com>
-
2 years ago
0
Valid domain Check
PCRE2 (PHP >=7.3)
Valid domain check, includes multibyte character check.
Submitted by
anonymous
-
2 years ago
1
Sri Lankan Mobile Number Validation
PCRE2 (PHP >=7.3)
See https://en.wikipedia.org/wiki/Telephone_numbers_in_Sri_Lanka
Submitted by
Isuru Ranawaka
-
2 years ago
1
Sri Lankan Land/Fixed-line Telephone Number Validation
PCRE2 (PHP >=7.3)
Sri Lankan Land/Fixed-line Telephone Number Validation This expression validates if a given value is a valid Sri Lankan fixed line / land line telephone number. Sri Lankan land line numbers starts from 0 and does not contain 7 in the 2nd digit, and is 10 digits in length. ...
Submitted by
Isuru Ranawaka
-
2 years ago
0
Card number
PCRE2 (PHP >=7.3)
Card number
Submitted by
anonymous
-
2 years ago
0
google
PCRE2 (PHP >=7.3)
google api
Submitted by
anonymous
-
2 years ago
0
Get HTML Balise
PCRE2 (PHP >=7.3)
.
Submitted by
anonymous
-
2 years ago
1
...
81
82
83
84
85
...
297
OpenVPN access log
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(?P<dst_ip>
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
)?
,
?
(?P<User>
[
a
-
zA
-
Z._
\d
]
+
)
,
(?P<src_ip>
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
)
:
(?<ID>
\d
+
)
/
gm
Open regex in editor
Description
This regular expression can be used in SIEM or scripts to extract special fields such as:
Submitted by
EskiSlav
-
2 years ago
(Last modified 2 years ago)