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 11,560 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
frequency
PCRE2 (PHP >=7.3)
e
Submitted by
hieppp
-
9 months ago
2022-12-19 04:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email check
PCRE2 (PHP >=7.3)
check if email is correct
Submitted by
anonymous
-
10 months ago
2022-12-17 18:24
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Select songs starting with 3+ numbers but not 1|2
PCRE2 (PHP >=7.3)
Select songs starting with odd numbers like 3+ numbers(001 - song.mp3, 000004 - song.mp3), but not simple ones 1|2 like (01 - song.opus or 1 - song.mp3) : 01 - The Black Eyed Peas - The Time (Dirty Bit).opus 0000000 - Nelly Furtado - Say It Right.mp3 ...
Submitted by
anonymous
-
10 months ago
2022-12-17 15:46
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Filtro Página web
PCRE (PHP <7.3)
Filtro pagina web
Submitted by
anonymous
-
10 months ago
2022-12-17 00:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex to match all instances not inside quotes
PCRE (PHP <7.3)
See https://stackoverflow.com/questions/6462578/regex-to-match-all-instances-not-inside-quotes
Submitted by
anonymous
-
10 months ago
2022-12-16 16:01
(Last modified 10 months ago)
2022-12-16 17:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Isolate javascript elements within [html] text
PCRE2 (PHP >=7.3)
Needed to find all content between ... tags, plus any content within a that has an argument starting with on, e.g. See https://onlinephp.io/ for PHP runtime
Submitted by
anonymous
-
10 months ago
2022-12-16 15:41
(Last modified 9 months ago)
2023-01-02 12:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Locate all quoted (single or double) text, handling nested and also ignoring when in the first param of a ".replace("
PCRE2 (PHP >=7.3)
See https://onlinephp.io/c/a21b4 for PHP preg_replace_callback results
Submitted by
anonymous
-
10 months ago
2022-12-16 15:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
split a comma separated string ignoring quotes and brackets
PCRE2 (PHP >=7.3)
Breaks a CSV into parts, but keeps those things in quotes (single OR double), or in curved bracket together. preg_match_all('(?:\'(?:\\\\.)\'|"(?:\\\\.)"|(\((?:++|(?1))*\))|)+s', $text, $matches)
Submitted by
anonymous
-
10 months ago
2022-12-16 15:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
提取持股情况
PCRE2 (PHP >=7.3)
能够基于董监高临时公告
Submitted by
mason
-
10 months ago
2022-12-16 10:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Whatsapp group message id
PCRE (PHP <7.3)
Whatsapp group message id
Submitted by
anonymous
-
10 months ago
2022-12-16 05:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
check operator and length
PCRE2 (PHP >=7.3)
check operator and length
Submitted by
anonymous
-
10 months ago
2022-12-16 02:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex to extract SEED and first 10 ETH addresses.
PCRE2 (PHP >=7.3)
Using iancoleman's Mnemonic Code Generator located at https://iancoleman.io/bip39/, set the COIN type to ETH. Then Ctrl+A (Windows), select all of the text on the page, copy, and paste into the "TEST STRING" located at "Regex101.com". This will leave only the SEED and first 10 ETH addresses as the...
Submitted by
anonymous
-
10 months ago
2022-12-15 23:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove leading and trailing zeros from decimal numbers
PCRE2 (PHP >=7.3)
Remove leading and trailing zeros from decimal numbers
Submitted by
asasine
-
10 months ago
2022-12-15 16:18
(Last modified 10 months ago)
2022-12-15 17:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Stripe ID Regex
PCRE2 (PHP >=7.3)
For stripe products or prices
Submitted by
anonymous
-
10 months ago
2022-12-15 13:31
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
test
PCRE2 (PHP >=7.3)
test
Submitted by
anonymous
-
10 months ago
2022-12-15 11:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
dante config
PCRE2 (PHP >=7.3)
generates dante config based on domains
Submitted by
anonymous
-
10 months ago
2022-12-14 23:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match domain, but not www
PCRE2 (PHP >=7.3)
matches domains with or without www, does not include www
Submitted by
anonymous
-
10 months ago
2022-12-14 23:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
HTML to Text only
PCRE2 (PHP >=7.3)
Removing HTML tags completely and only keeping text between them. USAGE: I used it to sum words to calculate reading time for articles.
Submitted by
@navoneel-talukdar - StackOverflow
-
10 months ago
2022-12-14 14:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
uzbekistan phone number
PCRE2 (PHP >=7.3)
uzbekistan phone number
Submitted by
Elbek Khamdullaev
-
10 months ago
2022-12-14 06:41
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find GUI {198699vh876ehge}
PCRE2 (PHP >=7.3)
Find a GUI {29v9v9363}
Submitted by
anonymous
-
10 months ago
2022-12-13 15:29
(Last modified 9 months ago)
2022-12-19 16:46
1
...
30
31
32
33
34
35
36
...
578
json-extract
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
*
"
(
\w
+
)
":
(
"
?
[^
,"
]
*
"
?
)
[
,|,
\n
]
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-10-09 11:08