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 400 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Replacing URL through Hyperlink in Text
Golang
Replacing URL through Hyperlink in Text
Submitted by
anonymous
-
2 years ago
2022-02-04 07:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
if else parser part 1
Java 8
A basic if else parser. It automatically captures the if equation and the result. It supports if, elif, and else statements. Note: for elif statements part 2 is required. This is because Regex can't use one group to capture multiple elif statements. Part 2 can be found here
Submitted by
Rubeste
-
2 years ago
2022-02-06 21:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
if else parser part 2
Java 8
This is part 2 of my if else parser. Part 2 is only needed for elif statements. Note: From the elif result from part 1 add a #end to close the statement. I might change it a bit in the future so this isn't needed. ...
Submitted by
Rubeste
-
2 years ago
2022-02-06 21:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ISO 3166-1 alpha-3
Java 8
ISO 3166-1 alpha-3 countries for validation
Submitted by
anonymous
-
2 years ago
2022-02-08 09:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
cisco cat3650cx & cat1000 'show power inline'
Golang
Matching show power inline output on cat1000 & cat3560cx
Submitted by
me
-
2 years ago
2022-02-14 16:46
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Split words in brackets
Golang
Split words in brackets
Submitted by
ugurakcil
-
2 years ago
2022-02-18 20:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
C-style block comment with "*/" escape
Golang
Match /* ... / with escape of quotation marks, e.g. / "*/" */. No look ahead needed.
Submitted by
Guyutongxue
-
2 years ago
2022-02-25 07:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Verificar caracter repetido
Java 8
Verificar caracter repetido
Submitted by
anonymous
-
2 years ago
2022-03-03 02:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Wordle Result
Golang
A Regular Expression for the result of a Wordle, that can be shared after completing the Wordle of the Day.
Submitted by
Varun R Gupta
-
2 years ago
2022-03-12 13:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match any pattern abc.def.***.uvw.xyz hackerRank
Java 8
This regex matches any pattern like in the title. HackerRank challenge modified.
Submitted by
anonymous
-
2 years ago
2022-03-17 19:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match non self closing tags HTML/XML tags
Golang
no description available
Submitted by
Richard Peng
-
7 years ago
2017-02-20 18:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Sustitución de espacios en blanco al final y al principio de una cadena.
Golang
no description available
Submitted by
anonymous
-
6 years ago
2017-04-28 18:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Customer
Golang
no description available
Submitted by
anonymous
-
6 years ago
2017-06-26 18:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
image cid
Golang
no description available
Submitted by
anonymous
-
6 years ago
2017-06-27 09:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
lightsail cli scp argument parsing
Golang
no description available
Submitted by
anonymous
-
6 years ago
2017-07-29 22:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Angular commit
Golang
no description available
Submitted by
anonymous
-
6 years ago
2017-08-23 13:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
jvm core dump grab
Golang
no description available
Submitted by
anonymous
-
6 years ago
2017-09-05 15:44
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
SuperJS: variable initializement
Golang
Matches a variable with the following syntax; = example string foo = ...
Submitted by
Jordy van Domselaar <jordy.van.domselaar@outlook.com>
-
6 years ago
2017-11-12 18:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find ip, link
Golang
no description available
Submitted by
anonymous
-
6 years ago
2017-11-24 10:04
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find ip and link full
Golang
no description available
Submitted by
anonymous
-
6 years ago
2017-11-27 09:49
1
...
7
8
9
10
11
12
13
...
20
AsciiDoc delimited block sidebar
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Java 8
"
(?m)
^
\*
{4}
[
\r\n
]
(
[
\s\S
]
+
?
(?=
^
\*
{4}
[
\r\n
]
)
)
^
\*
{4}
[
\r\n
]
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
aisbergde
-
a year ago
2022-10-08 17:26
(Last modified a year ago)
2022-10-10 10:05