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,580 community submitted regex patterns...
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)
Matching decimals in european format (dot as grouping separator, comma as decimal separator)
Java 8
A regex for validating decimal numbers in the European number format (in many parts of Europe at least, including Germany). A comma is used as a separator for the decimal number, a dot as a separator for thousand places.
Submitted by
Florian Drees
-
3 years ago
2021-03-12 23:31
(Last modified 3 years ago)
2021-03-14 17:43
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Comparison of decimals with operators such as <, >, !=, ==, <>
Java 8
Regex expression for comparing decimal numbers with the usual comparison operators such as (greater than), >= (greater than or equal to), != (not equal to), == (equal to), ... The regex also allows filtering of data from e.g. a database, whereby the first value is not needed, e.g. [FIELD] < 100
Submitted by
Florian Drees
-
3 years ago
2021-03-13 14:23
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)
Markdown Heading
Java 8
Parses the text following a '#' and a space all the way up to the next return character. Additional #'s can be added for parsing of other type of headings!
Submitted by
Hansen
-
2 years ago
2021-12-14 21:41
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)
Asciidoc PlantUML Block
Java 8
Regex to select PlantUML Block in Asciidoc documents
Submitted by
anonymous
-
2 years ago
2022-03-15 13:11
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
-
9 months ago
2023-02-20 18:43
(Last modified 9 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
-
8 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)
Mikrotik firewall logs
Golang
Matching for mikrotik ROS 7 Used in promtail and grafana
Submitted by
anonymous
-
4 months ago
2023-08-11 19:09
(Last modified 4 months ago)
2023-08-11 21:09
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
1
14 upvotes, 13 downvotes (score 34%) (You must be signed in to vote)
Regular expression to remove all puncutation
Python
Removes all of the puncutation present inlcuding \n,\t,\r
Submitted by
Abhinav Gupta
-
9 years ago
2014-06-20 07:18
2
7 upvotes, 5 downvotes (score 32%) (You must be signed in to vote)
postgesql
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-08-11 09:45
1
2
3
4
5
6
7
...
129
Phone number for all countries
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
^
(?<code>
\+
?
\d
{1,3}
)
[
-
\s
]
{0,}
(?<number>
\(
?
\d
{3}
\)
?
[
-
\s
]
{0,}
\d
{3}
[
-
\s
]
{0,}
\d
{2}
[
-
\s
]
{0,}
\d
{2}
)
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Alexander Smirnov
-
10 months ago
2023-02-07 07:33