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 13,820 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
email
PCRE2 (PHP >=7.3)
list of email
Submitted by
anonymous
-
11 hours ago
2023-10-03 07:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
DSN parser
PCRE2 (PHP >=7.3)
Regex for DSN parsing
Submitted by
ZKelo
-
21 hours ago
2023-10-02 21:07
(Last modified 21 hours ago)
2023-10-02 21:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Lua Syntax
PCRE2 (PHP >=7.3)
Replaces any period with the square brackets and single quotes
Submitted by
Andrew Stevens
-
a day ago
2023-10-02 14:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Lua Syntax
PCRE2 (PHP >=7.3)
finds and replaces square bracketed string literals with period and the field name
Submitted by
Andrew Stevens
-
a day ago
2023-10-02 14:47
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Best email regex including + (plus) and everything else
PCRE2 (PHP >=7.3)
The best regular expression for emails, including the + (plus) sign for every possible valid email in 2023.
Submitted by
Jérôme Brunel
-
4 days ago
2023-09-29 20:51
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Simple scientific notation
PCRE2 (PHP >=7.3)
allowed: 123 123.234 123.234E13 +123.234E-412 -.234E-12
Submitted by
Romzikon
-
4 days ago
2023-09-29 13:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
match "baseip/cidr"
PCRE2 (PHP >=7.3)
match "baseip/cidr"
Submitted by
Erik
-
4 days ago
2023-09-29 12:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Thai Home Telephone Validation
PCRE2 (PHP >=7.3)
refer to https://mobile.kapook.com/view7358.html
Submitted by
Chadin Chaipornpisuth
-
5 days ago
2023-09-29 02:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regexp for IPv4 or IPv6 CIDR entry
PCRE2 (PHP >=7.3)
Helps to find IPv4 or IPv6 CIDR entry in any text.
Submitted by
anonymous
-
7 days ago
2023-09-27 05:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Improvement on Python Print substitution argument matching
Python
Get the python substitution strings from inside of print statements. Replace the whole substitution string with {{ ArgumentName }} for use in a Jinja2 rendering. Supports fstrings...
Submitted by
Giles Knap
-
8 days ago
2023-09-25 09:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Python Print String arg extraction
Python
Extract substitution parameters from python print strings works with fstrings old style format strings old style %(variable) strings
Submitted by
Giles Knap
-
9 days ago
2023-09-24 18:24
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract text strings from repeating text fields followed by a suffix
Java 8
This regex expression is useful for extracting only the text string from a value in a column that may contain values from individual rows with repeat strings tagged with a suffix. For example - Row 1: "Sales (#1)", Row 2: "Sales Match (#2)". From the shared examples, this regex will extract the text...
Submitted by
nilotpalc
-
11 days ago
2023-09-22 11:56
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Standard URI Groups
PCRE2 (PHP >=7.3)
Split URI parts into usable groups based on PCRE2 Regex
Submitted by
Gashbeer
-
12 days ago
2023-09-21 23:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
groupping math every 2 comma separator
PCRE (PHP <7.3)
i have paste \n after every 2-th comma using sed sed 's/\(\(*,\)\{2\}\)/\1\n/g'
Submitted by
sanekmihailow
-
14 days ago
2023-09-19 18:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
din-91379.datatypeC
PCRE2 (PHP >=7.3)
DE Der Datentyp C wurde für alle normativen Schriftzeichen der DIN-Norm entworfen. Er ist somit die technische Umsetzung der Schnittstellenvereinbarung Alle nach Norm DIN 91379 normativen Schriftzeichen. Texte mit griechischen oder kyrillischen Buchstaben oder mit erweiterten (nicht-normativen) Nich...
Submitted by
rhildebr
-
14 days ago
2023-09-19 14:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
#MGBookChat
PCRE2 (PHP >=7.3)
The hashtag that identifies topics in middle-grade literature.
Submitted by
LHnatiuk
-
15 days ago
2023-09-19 04:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get Decathlon Product URL
PCRE2 (PHP >=7.3)
Match decathlon product detail url
Submitted by
anonymous
-
15 days ago
2023-09-18 12:59
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
HTML5 email validation
PCRE2 (PHP >=7.3)
Source: https://html.spec.whatwg.org/#e-mail-state-(type=email)
Submitted by
anonymous
-
16 days ago
2023-09-18 00:14
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
TV/Movie
PCRE2 (PHP >=7.3)
This is my first attempt so umm ya .. Grab Filename: Fname Season: se Episode: ep Year: yr
Submitted by
TheMorgue
-
16 days ago
2023-09-17 15:17
(Last modified 14 days ago)
2023-09-19 14:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Discord Token Regex
PCRE2 (PHP >=7.3)
Regex that will verify if a valid token has been provided. This comes directly from Discord's source.
Submitted by
Discord
-
17 days ago
2023-09-16 14:27
1
2
3
4
...
691
converting table to repeattable command latex
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
[
\s\S
]
*
\\
underline{
(
.
*
?
)
}
(
.
*
)
}
[
\s\S
]
*
verifiëren
&
(
[
\s\S
]
*
?
)
\\\\
[
\s\S
]
*
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
4 months ago
2023-06-01 13:47