Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
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 (C#)
Rust
Sponsors
Community Patterns
Search among 17,260 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
flake8-sql False Positives
Python
An example false positive matching docstring for the regex used by flake8-sql (https://github.com/pgjones/flake8-sql).
Submitted by
anonymous
-
a year ago
2022-07-08 14:00
(Last modified a year ago)
2022-07-08 14:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
a year ago
2022-07-08 06:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
a year ago
2022-07-07 21:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
a year ago
2022-07-07 14:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regular expresion mathematical expression
Python
re to validate x/(x+b)=(dx)/a like 7/(x+9) = (4x)/3
Submitted by
anonymous
-
a year ago
2022-07-07 11:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
decimal double point with range number from minus to plus range number
Python
the decimal, double point with range number from minus to plus range number, the example from -199.99 to 199.99 revision from example pattern 1: ^(?:\-?10(?:\.\d\d?)?|\-?[1]?[1-9]?0-9?)$
Submitted by
eki.saputra
-
a year ago
2022-07-07 05:10
(Last modified a year ago)
2022-07-07 05:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find Phone numbers on uncommented lines
ECMAScript (JavaScript)
Nothing at the moment
Submitted by
Bentejuy
-
a year ago
2022-07-06 22:21
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
a year ago
2022-07-06 20:47
(Last modified a year ago)
2022-07-06 20:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
date format YYYY-MM-DD
ECMAScript (JavaScript)
to detect date format YYYY-MM-DD ony starting from 1900
Submitted by
anonymous
-
a year ago
2022-07-06 20:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
a year ago
2022-07-06 19:28
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
a year ago
2022-07-06 10:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Phone number
Python
Phone number
Submitted by
anonymous
-
a year ago
2022-07-06 03:21
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Email
PCRE2 (PHP >=7.3)
Email
Submitted by
anonymous
-
a year ago
2022-07-05 13:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Twig Translation Regex
PCRE2 (PHP >=7.3)
Twig Translation Regex
Submitted by
selcuk mart <admin@hostingdevi.com>
-
a year ago
2022-07-05 12:47
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Valid domain Check
PCRE2 (PHP >=7.3)
Valid domain check, includes multibyte character check.
Submitted by
anonymous
-
a year ago
2022-07-05 11:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Sri Lankan Mobile Number Validation
PCRE2 (PHP >=7.3)
See https://en.wikipedia.org/wiki/Telephone_numbers_in_Sri_Lanka
Submitted by
Isuru Ranawaka
-
a year ago
2022-07-05 10:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
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
-
a year ago
2022-07-05 10:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Network Address
PCRE (PHP <7.3)
-
Submitted by
anonymous
-
a year ago
2022-07-05 08:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Card number
PCRE2 (PHP >=7.3)
Card number
Submitted by
anonymous
-
a year ago
2022-07-05 08:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
google
PCRE2 (PHP >=7.3)
google api
Submitted by
anonymous
-
a year ago
2022-07-05 05:49
1
...
89
90
91
92
93
94
95
...
863
完形填空
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Python
r"
(
\d
+
\.
|
\(
\d
+
\)\.
?
)
\s
?
(
[
A
-
C
]
\.
?
\s
?
*
(
\w
+
){1,4}
.
*
?
){3}
(
[
D
]
\.
?
\s
?
*
(
\w
+
.
s
?
){1,4}
)
\n
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-05-07 13:21
(Last modified a year ago)
2022-05-09 12:12