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,540 community submitted regex patterns...
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
-
9 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
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
1-100
PCRE (PHP <7.3)
1-100
Submitted by
anonymous
-
10 months ago
2022-12-12 09:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Is string a number?
PCRE2 (PHP >=7.3)
Solution to this problem: https://py.checkio.org/tracking/click/eyJ1cmwiOiAiaHR0cHM6Ly9weS5jaGVja2lvLm9yZy9taXNzaW9uL2lzLXN0cmluZy1hLW51bWJlci1wYXJ0LWlpL3NoYXJlL2Y4YWY2OWFhNzkxNDFlYzkyYTRlYmRiNjJmMzk1NzllLyIsICJtZXRhZGF0YSI6IHsidHJhY2tpbmdfY29kZSI6ICJmMjNkNmUxNzI3MmM0YWY1YmJlNjAxMjM5Yzg0MDhhNiJ9fQ==
Submitted by
Sohang Chopra
-
10 months ago
2022-12-10 01:35
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Octal Literal remover
PCRE2 (PHP >=7.3)
Useful for javascript calculator
Submitted by
github devynj4722
-
10 months ago
2022-12-09 16:44
1
...
30
31
32
33
34
35
36
...
577
Commit Message
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
(?#
First
line
)
(?:
fix
|
chore
|
docs
|
feat
|
refactor
|
style
|
test
)
(?:
\(
.
*
\)
)?
:
(?#
Some
content
and
then
two
line
breaks
twice.
For
the
short
and
long
description
)
[
A
-
Za
-
z
]
(?:
.
+
\s
{2}
){2}
(?#
Ticket
or
project
task
line
)
(?:
\w
+
\s
(
TT
|
PT
)
\d
+
[
\s\S
]
*
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-10-11 12:33