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 5,500 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
hash and slash
ECMAScript (JavaScript)
replace url that has a hash or slash with slash
Submitted by
anonymous
-
a year ago
2022-05-10 18:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
belcorp
PCRE2 (PHP >=7.3)
test
Submitted by
anonymous
-
a year ago
2022-05-10 22:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match ipv4|匹配ipv4
PCRE2 (PHP >=7.3)
192.168.254.1 match 0.0.0.0 match 01.01.01.01 does not match 255.255.255.255 match 255.0.0.0 match 0.0.0.256 does not match
Submitted by
nihuge
-
a year ago
2022-05-11 01:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Strong Password (three of the four type)
ECMAScript (JavaScript)
must use at least three of the four available character types: lowercase letters, uppercase letters, numbers, and symbols.
Submitted by
anonymous
-
a year ago
2022-05-11 01:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
US telephone number practice
ECMAScript (JavaScript)
Attempting to match valid US phone number formates
Submitted by
anonymous
-
a year ago
2022-05-12 01:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match but no replace
PCRE2 (PHP >=7.3)
match an group in re.sub pattern but no replace it !
Submitted by
anonymous
-
a year ago
2022-05-12 16:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Capture Mail
PCRE2 (PHP >=7.3)
Calcolo 1° indirizzo mail da stringa con indirizzo fisso.
Submitted by
Alessandro
-
a year ago
2022-05-13 15:41
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get YouTube ID in link
ECMAScript (JavaScript)
regex for get video id in link
Submitted by
anonymous
-
a year ago
2022-05-13 22:26
(Last modified a year ago)
2022-05-13 23:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
only .ts .tsx .js .jsx
ECMAScript (JavaScript)
get files extension
Submitted by
HZ
-
a year ago
2022-05-14 13:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
selecting a tag and the text inside it
ECMAScript (JavaScript)
The regular expression separates the beginning and end of the tag, as well as everything between them into separate groups.
Submitted by
anonymous
-
a year ago
2022-05-14 16:58
(Last modified a year ago)
2022-05-14 22:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find string a string not withing quote
PCRE2 (PHP >=7.3)
Find string a string not withing quote
Submitted by
anonymous
-
a year ago
2022-05-14 19:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
replace text in tag
ECMAScript (JavaScript)
find and replace text in tag
Submitted by
anonymous
-
a year ago
2022-05-14 22:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Comprobar fecha
ECMAScript (JavaScript)
^(?:3[01]|12|0?[1-9])([\-/.])(0?[1-9]|1[1-2])\1\d{4}$
Submitted by
anonymous
-
a year ago
2022-05-16 07:44
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Phone number
PCRE2 (PHP >=7.3)
Improvement of the Phone Number regex pattern created by 'elishas@syncode.io'
Submitted by
anonymous
-
a year ago
2022-05-16 09:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Notepad++_command_IDs
PCRE2 (PHP >=7.3)
I'm trying to arrange and manipulate Notepad++ icons and make some scripts, so, after generating the list from the MenuIcons plugin, I used this RegEx to make a list with the container (folder/subfolder, the ones that have a -1 command ID) and indent all the items it contains (I'm using Python for m...
Submitted by
Me, myself and I (with the help from the Menu Icons plugin)
-
a year ago
2022-05-16 10:47
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Php
PCRE2 (PHP >=7.3)
Php
Submitted by
Nickname
-
a year ago
2022-05-16 11:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
track OM cash out
PCRE2 (PHP >=7.3)
cash out tracker
Submitted by
anonymous
-
a year ago
2022-05-16 16:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
UA phone number
ECMAScript (JavaScript)
check ua phone number
Submitted by
anonymous
-
a year ago
2022-05-16 20:23
(Last modified a year ago)
2022-05-16 20:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
FIrst or Last Name
ECMAScript (JavaScript)
Validates a first or last name of an user. Positives: Anna Anna-Louisa Anna Louisa...
Submitted by
Iris
-
a year ago
2022-05-17 09:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
.csv data conversion for a test case
PCRE2 (PHP >=7.3)
from "['a']" to "[""a""]"
Submitted by
anonymous
-
a year ago
2022-05-17 22:03
1
...
214
215
216
217
218
219
220
...
275
Discord GuildEmoji
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
<
(
a
)?
:
(
[
\w
]
{2,32}
)
:
(
[
\d
]
{18,28}
)
>
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
revelcw
-
5 months ago
2023-05-11 20:35