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...
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Html tag parser
PCRE2 (PHP >=7.3)
This regex will help you to parse html tag. Example Title ...
Submitted by
denchiklut
-
2 years ago
2021-08-27 09:22
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Check Phone numbers
PCRE2 (PHP >=7.3)
Other patterns
Submitted by
https://joserobinson.com
-
2 years ago
2021-09-18 14:56
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Match Javanese Script Syllable
PCRE2 (PHP >=7.3)
Match any syllable based on javanese script unicode
Submitted by
anonymous
-
2 years ago
2021-09-18 13:08
(Last modified 2 years ago)
2021-09-18 13:16
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
RFC1918 - Private IPv4 addresses
PCRE2 (PHP >=7.3)
Validate a given IP v4 address against all three defined Private IPv4 Subnets as statet in RFC1918 10.0.0.0/8 172.16.0.0/20 192.168.0.0/16 ...
Submitted by
0100101101001
-
2 years ago
2021-09-22 11:58
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Grabify URL Detector
PCRE2 (PHP >=7.3)
Detects any Grabify IP tracker links
Submitted by
ShadowNox
-
2 years ago
2021-09-26 17:54
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
UUID 4
PCRE2 (PHP >=7.3)
Detects any UUID 4 strings
Submitted by
ShadowNox
-
2 years ago
2021-09-26 18:11
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Extract parts of a URL on Python
Python
Extract parts of a URL on Python
Submitted by
dixanms
-
2 years ago
2022-02-02 23:27
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Lua Enhanced: +=
Python
Adds += to Lua.
Submitted by
anonymous
-
2 years ago
2022-02-20 11:15
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Delete hour range
PCRE2 (PHP >=7.3)
Select duplicate a.m. - p.m range
Submitted by
profeivan
-
2 years ago
2022-03-05 01:44
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Pattern for usual email address
PCRE2 (PHP >=7.3)
Intentionally leaves out weird stuff such as IPV4 or IPV6 for the domain part and quoted usernames with invalid chars in the addressee part. Handles internationalized domains with soft validation (only structural matching) and blocks domain parts starting or ending with dashes or containing double d...
Submitted by
Victor Schröder
-
2 years ago
2022-03-22 11:51
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
exp1
Python
no description available
Submitted by
anonymous
-
8 years ago
2016-05-18 13:24
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
EclipseKeyword_2
Python
no description available
Submitted by
Rashmin
-
7 years ago
2016-06-10 09:05
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
AliasMatch
Python
no description available
Submitted by
anonymous
-
7 years ago
2016-06-22 12:27
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Find PHP object variables
Python
Find PHP object variables, and replace them with (array)brackets.
Submitted by
The Milkman
-
7 years ago
2016-06-22 15:33
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Adress regex
Python
no description available
Submitted by
Ali
-
7 years ago
2016-06-28 18:02
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Password (4 Classes)
Python
1 Uppercase 1 lower case 1 number 1 not a number or letter
Submitted by
anonymous
-
7 years ago
2016-08-06 21:47
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
IPv6 detection
Python
It's too large to match with all which seems like an IPv6. It's not perfect, but it's detects more valid IPv6 than some others regex.
Submitted by
Ajabep
-
7 years ago
2016-08-15 13:31
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
.*(\d+).* Selects last number
Python
no description available
Submitted by
anonymous
-
7 years ago
2016-09-13 20:27
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Ansible Host Var checking
Python
We had an issue where the "hosts=some_var" value could cause mass deployments if the wrong value was passed through. Specifically a comma with nothing surrounding it (i.e. "hosts=,"). This regex will allow us to fail when certain characters are present.
Submitted by
anonymous
-
7 years ago
2017-02-10 19:33
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
URL parser
PCRE2 (PHP >=7.3)
The best way to parse URL via Regex. This can be used in javascript, PHP, etc.
Submitted by
Ivijan-Stefan Stipic
-
7 years ago
2017-03-08 06:26
(Last modified 5 months ago)
2023-07-20 23:11
1
2
3
4
5
6
7
8
...
216