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,640 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Postcode (UK)
Python
Detects UK postcodes (minimal edge cases)
Submitted by
anonymous
-
2 years ago
2022-05-09 09:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
user name between 2 and 30 character
ECMAScript (JavaScript)
regex for user name with criteria: Minimum 2 character Maximum 30 character Character must be alphanumeric, except first character is alphabetical Character "_" and "." is allowed once between first and last character
Submitted by
aicone.id
-
2 years ago
2022-05-09 11:06
(Last modified 5 months ago)
2023-07-21 10:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
String length pattern
Golang
Simple search of string length with the regexp
Submitted by
anonymous
-
2 years ago
2022-05-10 05:23
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
-
2 years ago
2022-05-10 18:58
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
-
2 years ago
2022-05-11 01:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Extract VK.com community ID
Python
Extract the numerical ID of a VK Commmunity fromit's wall url.
Submitted by
anonymous
-
2 years ago
2022-05-11 12: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
-
2 years ago
2022-05-12 01:25
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
-
2 years ago
2022-05-13 22:26
(Last modified 2 years 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
-
2 years 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
-
2 years ago
2022-05-14 16:58
(Last modified 2 years ago)
2022-05-14 22:00
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
-
2 years 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
-
2 years ago
2022-05-16 07:44
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
-
2 years ago
2022-05-16 20:23
(Last modified 2 years ago)
2022-05-16 20:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regex expression to DateTime checking in YYYY-MM-DDTHH:MM:SS[+/-]HH:SS
Python
/(^((\d{4}-(((0[13578]|1)-(0[1-9]|[1-2]\d|3[01]))))|((\d{4}-(((0[469]|1)-(0[1-9]|[1-2]\d|3)))))|((\d{4}-(0[2]-(0[1-9]|[1-2]\d)))))T(([01]\d|2[0-3]):([0-5]\d):([0-5]\d))?(+-\d:[0-5]\d)$)/gm
Submitted by
anonymous
-
2 years ago
2022-05-17 04:45
(Last modified 5 months ago)
2023-07-19 13:51
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
-
2 years ago
2022-05-17 09:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Mikrotik Regex Firewall Log Golang
Golang
Regex para uso com Grafana Loki Log feito via Mangle, com prefix $user do freeradius.
Submitted by
Vitor Abbade
-
2 years ago
2022-05-18 12:47
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Url handling
Python
Simple regex to split url
Submitted by
Hangfish
-
2 years ago
2022-05-20 14:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Mez regex #1
ECMAScript (JavaScript)
This is the #1 regex used in Mez
Submitted by
anonymous
-
2 years ago
2022-05-21 09:08
(Last modified 2 years ago)
2022-05-21 09:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Bracket finder ( Mez regex #2 )
ECMAScript (JavaScript)
This is the #2 regex used in Mez
Submitted by
anonymous
-
2 years ago
2022-05-21 09:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Mez regex #3
ECMAScript (JavaScript)
This is the #3 regex used in Mez
Submitted by
anonymous
-
2 years ago
2022-05-21 11:22
1
...
251
252
253
254
255
256
257
...
282
img html tag to xml
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
(?<!
\/
)
>
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-06-12 08:40