Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.
Regular
Expressions
101
@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
What's new?
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
.NET
Sponsors
All your environment variables, in one place
Library entries
Search library
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Replace Json value with key
Find the key and replace it's value.
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Address
grab address
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
한글자만 남기고 중복글자 지우기
한글자만 남기고 중복글자 지우기 ex) 강남역역역역 -> 강남역
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Get Client
Parse Client type
Submitted by
ben
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Json Starts With Keys
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
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Capture Groups: Any number in between slashes followed by anything
Two groups. One of digits in between slashes (e.g. '/5/') followed by any text
Submitted by
Leonardo Marcelino Vieira
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
reg
reg
Submitted by
inj
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
Bibliography Author|Year Formatted References
Finds author/year formatted refs
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
get the matching text starting from [** to /.md
get the matching text starting from [** to /.md
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
Version numbers
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
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Parse Received header on email
Parse Received header on email
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Match questions
To debug pasted questions with options
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
regex for the minute part of crontab
hopefully matches all variations of the minute part of a crontab. working on the other parts soon
Submitted by
nick g
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
match all printable basic ASCII characters in c++
match all printable basic ASCII characters in c++ #include #include #include ...
Submitted by
zhongmeng Yu
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Match all words
extracts all word char sequences from given text
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Match Dates
extracts dates from text; Valid date format: dd-MMM-yyyy
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Email Validation
Writes a regular expression that performs simple email validation An email consists of: username @ domain name Usernames are alphanumeric Domain names consist of two strings, separated by a period Domain names may contain only English letters ...
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
reg
r
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
IMPORTANT REGEX
important
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Match Number in a string
That's all
Submitted by
anonymous
-
2 years ago
1
...
88
89
90
91
92
93
94
...
202
JS Parse rgb or rgba CSS string
Vote
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
Regular Expression
pcre2
/
rgba
?
\(
\s
*
(
25
[
0
-
5
]
|
2
[
0
-
4
]
\d
|
1
\d
{1,2}
|
\d\d
?
)
\s
*
,
\s
*
(
25
[
0
-
5
]
|
2
[
0
-
4
]
\d
|
1
\d
{1,2}
|
\d\d
?
)
\s
*
,
\s
*
(
25
[
0
-
5
]
|
2
[
0
-
4
]
\d
|
1
\d
{1,2}
|
\d\d
?
)
\s
*
,
?
\s
*
(
[
01
\.
]
\.
?
\d
?
)?
\s
*
\)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Beau Beauchamp, WebTIGERS
- 2 years ago