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 4,320 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
django /static/ to {% static %}
PCRE2 (PHP >=7.3)
replaces as said
Submitted by
anonymous
-
3 years ago
2021-05-13 15:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
AEM - Author & Publisher - request.log - RegEx for SPLUNK fields
PCRE2 (PHP >=7.3)
RegEx to extract fields in SPLUNK for AEM Authors and Publishers for the request.log.
Submitted by
Robert Wunsch
-
3 years ago
2021-05-14 10:30
(Last modified 3 years ago)
2021-05-14 16:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Floating point number with optional positive/negative
PCRE2 (PHP >=7.3)
Basic matches an integer or floating point number with optional positive or negative signed.
Submitted by
Tony Le
-
3 years ago
2021-05-14 21:31
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex to replace SRC to DATA-SRC when class attribute contains lazy text
PCRE2 (PHP >=7.3)
This regex converts text like this: __ TO: __
Submitted by
Suman Maharjan
-
3 years ago
2021-05-15 05:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
r-type single register
PCRE2 (PHP >=7.3)
for a comp arch assembler
Submitted by
anonymous
-
3 years ago
2021-05-15 06:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Replace Json value with key
PCRE2 (PHP >=7.3)
Find the key and replace it's value.
Submitted by
anonymous
-
3 years ago
2021-05-17 13:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Address
PCRE2 (PHP >=7.3)
grab address
Submitted by
anonymous
-
3 years ago
2021-05-17 15:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
한글자만 남기고 중복글자 지우기
PCRE2 (PHP >=7.3)
한글자만 남기고 중복글자 지우기 ex) 강남역역역역 -> 강남역
Submitted by
anonymous
-
3 years ago
2021-05-18 05:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get Client
PCRE2 (PHP >=7.3)
Parse Client type
Submitted by
ben
-
3 years ago
2021-05-18 22:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Json Starts With Keys
PCRE2 (PHP >=7.3)
Regex for checking if JSON starts with desired keys Useful for validating/filtering database entries when used in combination with SQL Like Example: Postgre: select * from table_name where column_json ~ '^\{[\s]\"(tab1|tab3|tab5)".'
Submitted by
MUA
-
3 years ago
2021-05-19 06:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Capture Groups: Any number in between slashes followed by anything
PCRE2 (PHP >=7.3)
Two groups. One of digits in between slashes (e.g. '/5/') followed by any text
Submitted by
Leonardo Marcelino Vieira
-
3 years ago
2021-05-20 16:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
reg
PCRE2 (PHP >=7.3)
reg
Submitted by
inj
-
3 years ago
2021-05-22 21:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Bibliography Author|Year Formatted References
Python
Finds author/year formatted refs
Submitted by
anonymous
-
3 years ago
2021-05-23 03:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
get the matching text starting from [** to /.md
PCRE2 (PHP >=7.3)
get the matching text starting from [** to /.md
Submitted by
anonymous
-
3 years ago
2021-05-24 15:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Version numbers
Python
Python regex to get version numbers, including if the version number specifies a range such as 1.0-2.0 or >1.0
Submitted by
jhylands
-
3 years ago
2021-05-25 07:41
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Parse Received header on email
PCRE2 (PHP >=7.3)
Parse Received header on email
Submitted by
anonymous
-
3 years ago
2021-05-25 16:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match questions
PCRE2 (PHP >=7.3)
To debug pasted questions with options
Submitted by
anonymous
-
3 years ago
2021-05-27 20:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regex for the minute part of crontab
PCRE2 (PHP >=7.3)
hopefully matches all variations of the minute part of a crontab. working on the other parts soon
Submitted by
nick g
-
3 years ago
2021-05-27 22:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match all printable basic ASCII characters in c++
PCRE2 (PHP >=7.3)
match all printable basic ASCII characters in c++ #include #include #include ...
Submitted by
zhongmeng Yu
-
3 years ago
2021-05-29 05:31
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match all words
PCRE2 (PHP >=7.3)
extracts all word char sequences from given text
Submitted by
anonymous
-
3 years ago
2021-05-29 06:26
1
...
86
87
88
89
90
91
92
...
216
Extract cdn images intercom
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
(
"title":
\s.
+
)
,
\s.
+
\n.
+
"body"
.
+
(
https:
\/\/
downloads
.
intercomcdn
.
com
.
+
image
.\w
{3}
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
3 years ago
2021-03-01 14:06
(Last modified 3 years ago)
2021-03-01 17:17