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,420 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
get Markdown image link and alt
PCRE2 (PHP >=7.3)
get image's link and alt in Markdown
Submitted by
fgt1t5y
-
a month ago
2023-10-27 04:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get all table from sql query string | 从SQL查询语句中获取所有表名
PCRE2 (PHP >=7.3)
Get all table from sql query string | 从SQL查询语句中获取所有表名。 WelineFramework PHP8 。
Submitted by
Aiweline/秋枫雁飞
-
a month ago
2023-10-26 03:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract phone number and email address from string
PCRE2 (PHP >=7.3)
Extract the phone numbers and email addresses from a string
Submitted by
Mukesh Jangid
-
2 months ago
2023-10-25 08:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get Markdown Table Row
PCRE2 (PHP >=7.3)
Get the whole row except the header delimiter
Submitted by
Matthias König
-
2 months ago
2023-10-25 08:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get Markdown Tables
PCRE2 (PHP >=7.3)
Get a Match for every table in a markdown file.
Submitted by
Matthias König
-
2 months ago
2023-10-25 08:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Kafka loki parser
Golang
Kafka loki parser
Submitted by
anonymous
-
2 months ago
2023-10-24 21:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
OpenWeather API Key Regex
ECMAScript (JavaScript)
A simple regex to match API keys for OpenWeather map. Matches 32 hexadecimal character strings.
Submitted by
anonymous
-
2 months ago
2023-10-24 14:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Roblox Account Cookie RegExp
ECMAScript (JavaScript)
A regex to match against Roblox cookies. Two captures; the first is the warning text; the second is the cookie itself.
Submitted by
anonymous
-
2 months ago
2023-10-24 13:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Discord Bot Token
ECMAScript (JavaScript)
JS/TS regex for token validation.
Submitted by
anonymous
-
2 months ago
2023-10-24 12:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Rust Phone Number
Rust
not fully featured, but simple.
Submitted by
Jakersnell
-
2 months ago
2023-10-23 21:47
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
replace static url tags in templates from flask to django
PCRE2 (PHP >=7.3)
replace static url tags in templates from flask to django
Submitted by
anonymous
-
2 months ago
2023-10-23 14:47
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Start of Java Functions
PCRE2 (PHP >=7.3)
I wrote this regex to find all of the function headers in java.
Submitted by
anonymous
-
2 months ago
2023-10-23 14:12
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
hyphenize
ECMAScript (JavaScript)
convert 16 chars into four hyphen separated groups
Submitted by
mco
-
2 months ago
2023-10-23 13:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
L2 = {w ∈ Σ ∗ = {0, 1} ∗ | |w|1 = 2k + 1, k ∈ N}
PCRE2 (PHP >=7.3)
L2 = {w ∈ Σ ∗ = {0, 1} ∗ | |w|1 = 2k + 1, k ∈ N}
Submitted by
Alan Dantas
-
2 months ago
2023-10-23 02:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
L012 = {w ∈ Σ | |w|000 = 0} ∗ = {0, 1} ∗ | |w|000 = 0}
PCRE2 (PHP >=7.3)
L012 = {w ∈ Σ | |w|000 = 0} ∗ = {0, 1} ∗ | |w|000 = 0}
Submitted by
Alan Dantas
-
2 months ago
2023-10-23 01:37
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
L1 = {w ∈ Σ ∗ = {0, 1} ∗ | |w|0 = 2k, k ∈ N}
PCRE2 (PHP >=7.3)
L1 = {w ∈ Σ ∗ = {0, 1} ∗ | |w|0 = 2k, k ∈ N}
Submitted by
Alan Dantas
-
2 months ago
2023-10-23 00:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Exabeam NGSC REGEX FIlters
PCRE2 (PHP >=7.3)
Regex to filter Fortinet DNS Request in Exabeam Fusion
Submitted by
Jonathan Moreira
-
2 months ago
2023-10-20 15:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
English address
ECMAScript (JavaScript)
English address that can start with numbers, # sign or words (\w) followed with any combination of previously mentioned. Multi-line, global and case insensitive supported. Address CANNOT START WITH \w character _ or 0 or any other symbols
Submitted by
Dr St Clair Clarke
-
2 months ago
2023-10-19 21:59
(Last modified 2 months ago)
2023-10-19 22:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
correos
PCRE2 (PHP >=7.3)
correos
Submitted by
lamusaliza
-
2 months ago
2023-10-19 21:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
REGEX for parsing Received value in email headers (RFC822)
ECMAScript (JavaScript)
Example: Received: from VI1PR0102CA0029.eurprd01.prod.exchangelabs.com (2603:10a6:802::42) by VE1PR01MB5599.eurprd01.prod.exchangelabs.com (2603:10a6:803:11f::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12; Thu, 9 Jan ...
Submitted by
anonymous
-
2 months ago
2023-10-19 08:27
1
2
3
4
5
6
7
8
...
871
SSID Pattern
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
^
(?<!
\d
)
\d
{7}
(?!
\d
)
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Abhi Reddy
-
a year ago
2022-10-23 21:18
(Last modified a year ago)
2022-10-23 23:40