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)
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 4 months ago)
2023-07-20 23:11
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
lottery data picker
Python
for azlottoapi
Submitted by
anonymous
-
3 years ago
2020-12-28 20:55
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
IpAddress
Python
Ensure the ip address format is correct
Submitted by
aaa
-
3 years ago
2021-01-14 09:00
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Dutch zipcodes
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
3 years ago
2021-02-24 15:54
(Last modified 3 years ago)
2021-02-24 16:08
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Dutch streetnames + housenumber + extension
PCRE2 (PHP >=7.3)
Validates a streetname + housenr + extension Somestreet 12 b
Submitted by
anonymous
-
3 years ago
2021-02-25 08:07
(Last modified a year ago)
2022-10-20 10:52
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
web log entry
PCRE2 (PHP >=7.3)
no description available
Submitted by
PepeRG
-
3 years ago
2021-03-11 23:06
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Url
PCRE2 (PHP >=7.3)
Port https://regex101.com/library/cX0pJ8 to PCRE2 (PHP >= 7.3)
Submitted by
semivori
-
3 years ago
2021-03-17 12:02
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Replace dotnet assembly versions
Python
Replaces both VB & C# AssemblyInfo files.
Submitted by
ankostis
-
2 years ago
2021-06-30 10:48
(Last modified 2 years ago)
2021-06-30 13:04
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
object
PCRE2 (PHP >=7.3)
Json Object
Submitted by
anonymous
-
2 years ago
2021-07-02 15:32
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
US phone number
PCRE2 (PHP >=7.3)
US phone number, try to catch as many as possible
Submitted by
anonymous
-
2 years ago
2021-07-03 04:46
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
.htaccess wordpress redirect uploads to production domain
PCRE2 (PHP >=7.3)
.htaccess wordpress redirect uploads to production domain
Submitted by
anonymous
-
2 years ago
2021-07-03 06:41
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
spring logback parser
PCRE2 (PHP >=7.3)
Spring boot logback 日志正则匹配。 样例日志 2019-12-27 13:52:38.201 INFO 1 --- [Thread-8] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 2019-12-27 13:52:39.535 INFO 1 --- [Thread-8] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed ...
Submitted by
LiuDecai
-
2 years ago
2021-07-06 08:09
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
mega.nz files and folders
PCRE2 (PHP >=7.3)
Regex for matching https://mega.nz file and folder URLs. https://github.com/tonikelope/megabasterd/issues/215
Submitted by
anonymous
-
2 years ago
2021-07-06 17:55
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Mobile Number Regex
PCRE2 (PHP >=7.3)
The following regex validates international mobile numbers
Submitted by
anonymous
-
2 years ago
2021-07-14 10:58
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
1
2
3
4
5
6
7
...
216