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 2,180 community submitted regex patterns...
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
yowsup-cli message parsing
Python
This pattern parses the yowsup-cli message output to recover (otherwise lost) messages. Current yowsup version: v2.4
Submitted by
kerel
-
8 years ago
2015-10-19 19:36
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Argentine postal code validation
Python
validation for Argentina postal codes, previous four digits + new CPA
Submitted by
jpaulini
-
8 years ago
2015-11-12 18:11
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
math chain comparisons with optional matched paren
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-11-13 16:25
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
preprocess text files to include only readable and text words
Python
for large corpus cleaning
Submitted by
aliabbas petiwala
-
8 years ago
2015-11-23 12:37
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
parse tag data with multiline
Python
parse tag data with multiline
Submitted by
Ali GÖREN
-
8 years ago
2015-11-24 00:35
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Password Validation
Python
Checks for password containing at least 1 Upper case, 1 lower case, 1 digit and 1 special character, all together with a length of at least 8. (This pattern allows any order of the requried elements, other than what was been distributed here before)
Submitted by
Tom Spielvogel
-
8 years ago
2016-02-03 13:16
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
test
Python
no description available
Submitted by
anonymous
-
8 years ago
2016-02-09 19:50
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Regex for Chemical Compounds
Python
no description available
Submitted by
Haiming Zhao
-
8 years ago
2016-02-23 17:09
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Zoom links, only with passwords
.NET (C#)
Group 1 will have meeting id, group 2 will have password
Submitted by
anonymous
-
a year ago
2022-08-17 19:04
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Replace sub-strings in string
.NET (C#)
Replace sub-strings in string
Submitted by
anonymous
-
a year ago
2023-01-01 01:47
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Phone number for all countries
.NET (C#)
Phone number for all countries. Valid symbols: ( ), -, whitespace
Submitted by
Alexander Smirnov
-
10 months ago
2023-02-07 07:33
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Get ip address (only ipv4) Validator
.NET (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
10 months ago
2023-02-20 18:43
(Last modified 10 months ago)
2023-02-21 12:05
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Aus Mobile number
.NET (C#)
validates against multiple common formats
Submitted by
anonymous
-
9 months ago
2023-03-20 06:22
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
URL Regex
.NET (C#)
Matches protocol, domain, port, path, query and anchor as named capturing groups.
Submitted by
Jonathan
-
5 months ago
2023-07-06 08:43
(Last modified 5 months ago)
2023-07-06 08:45
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Python regular expression to detect any type of group link and private channel in Telegram
Python
You can use this regular expression to identify any type of Telegram link. It doesn't matter whether it is t.me or telegram.me. Links including "joinchat" are also accepted.
Submitted by
Telegram : T.me/TinyPY
-
4 months ago
2023-07-23 15:57
(Last modified 4 months ago)
2023-07-24 15:49
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Placeholder resolving
.NET (C#)
.Net regular expression for resolving placeholders in the format of ${rewriter(multilevel:key)?fallback} (+ variations)
Submitted by
anonymous
-
2 months ago
2023-10-07 19:39
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)
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)
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
1
2
3
4
5
6
...
109
SO: fail2ban regular to find 403 request in nginx
6
7 upvotes, 1 downvotes (score 52.9%) (You must be signed in to vote)
Regular Expression
Python
r"
^
(?:
::f
{4,6}
:
)?
(?P<host>
\S
+
)
.
*
\"
(
GET
|
POST
)
[^
\"
]
+
\"
403
"
mg
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
9 years ago
2014-09-15 11:32
(Last modified 4 months ago)
2023-07-27 20:59