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 2,440 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
All versions prior to 3.1.17
PCRE2 (PHP >=7.3)
Should show all semantic versions up to but not including 3.1.17
Submitted by
anonymous
-
6 months ago
2023-03-28 11:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Gene ID from GTF Attributes
PCRE2 (PHP >=7.3)
As the title says, duh...
Submitted by
anonymous
-
6 months ago
2023-03-29 10:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Pattern to parse all XML node children
PCRE2 (PHP >=7.3)
Pattern to parse all XML node children
Submitted by
emadhusameldeen@gmail.com
-
6 months ago
2023-03-29 14:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Parse XML element parts
PCRE2 (PHP >=7.3)
Parse XML element parts
Submitted by
emadhusameldeen@gmail.com
-
6 months ago
2023-03-29 14:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Whatsapp timestamp remover
PCRE2 (PHP >=7.3)
Write regex to remove anything in between [12:58, 30/03/2023] Bharadwaj Giridhar from inboxpirates.net:
Submitted by
Chatgpt
-
6 months ago
2023-03-30 09:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Extract postcode and city
PCRE2 (PHP >=7.3)
Extract postcode and city when both are combined
Submitted by
anonymous
-
6 months ago
2023-03-30 09:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Name with propositions surnames
PCRE2 (PHP >=7.3)
An expression to get nouns by grouping prepositions with surnames
Submitted by
maurocsjr@gmail.com
-
6 months ago
2023-03-30 11:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match a shell-style parameter expansion introduced with a dollar sign and enclosed in culry braces.
PCRE2 (PHP >=7.3)
Matches a shell-style (bash, sh, zsh, etc.) parameter expansion reference.
Submitted by
anonymous
-
6 months ago
2023-03-30 18:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
test123
PCRE2 (PHP >=7.3)
test
Submitted by
anonymous
-
6 months ago
2023-03-30 23:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
weekly
PCRE2 (PHP >=7.3)
写周报把优路仕这边的工时天数去掉
Submitted by
anonymous
-
6 months ago
2023-03-31 01:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Reguljärt uttryck för att matcha G1
PCRE2 (PHP >=7.3)
Reguljärt uttryck för att matcha G1
Submitted by
Jonas Thor
-
6 months ago
2023-03-31 12:31
(Last modified 6 months ago)
2023-03-31 12:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find Secrets in Object
PCRE2 (PHP >=7.3)
Given a JSON.stringified object that may contain secrets, obfuscate them for logging. It will match parameters with "token," "key," and "secret" in strings and key/value pairs. Specifically looks for object values with : setters``, strings with = setters and Authorization headers. This regex will p...
Submitted by
chadkluck
-
6 months ago
2023-04-02 00:12
(Last modified 6 months ago)
2023-04-03 01:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
SMMRaja Mass Order
PCRE2 (PHP >=7.3)
Regex for easily mass-ordering from SMMRaja
Submitted by
anonymous
-
6 months ago
2023-04-02 15:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Test regexp to redirect from mainpage dups
PCRE2 (PHP >=7.3)
Test regexp to redirect from mainpage dups
Submitted by
sinstranger
-
6 months ago
2023-04-03 08:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
import exp
PCRE2 (PHP >=7.3)
find file name on import/export js module
Submitted by
anonymous
-
6 months ago
2023-04-03 10:46
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get string inside http or https and @
PCRE2 (PHP >=7.3)
Get the string inside an http or https and @something
Submitted by
aleix soler
-
6 months ago
2023-04-04 07:08
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Read a line from the splunk tutorial www1 log
PCRE2 (PHP >=7.3)
Read a line from the splunk tutorial www1 log
Submitted by
Russ Ferriday
-
6 months ago
2023-04-05 21:01
(Last modified 6 months ago)
2023-04-05 21:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Working days
PCRE2 (PHP >=7.3)
Parses working days, extracting from them only the days of the week and hours of work. Only Cyrillic is supported.
Submitted by
anonymous
-
6 months ago
2023-04-06 07:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
adreess validator test
PCRE2 (PHP >=7.3)
adreess validator test
Submitted by
anonymous
-
6 months ago
2023-04-06 13:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Universal Phone Regular Expression
PCRE2 (PHP >=7.3)
Universal Phone Regular Expression
Submitted by
Priy Ranjan Prakash
-
6 months ago
2023-04-06 14:57
1
...
109
110
111
112
113
114
115
...
122
Match any url in text or html (http, https)
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
(?:
http
[
s
]
?
:
\/\/
.
)?
(?:
www
\.
)?
[
-a
-
zA
-
Z0
-
9@%._
\+
~#=
]
{2,256}
\.
[
a
-
z
]
{2,6}
\b
(?:
[
-a
-
zA
-
Z0
-
9@:%_
\+
.~#?&
\/\/
=
]
*
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Jérémy Munsch
-
2 years ago
2022-02-02 15:04