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)
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)
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)
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)
Split words in brackets
Golang
Split words in brackets
Submitted by
ugurakcil
-
2 years ago
2022-02-18 20:12
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Matching build file names
Java 8
Matches various versions of build file filenames from our jenkins builds
Submitted by
Sean Furrh
-
2 years ago
2022-02-16 22:31
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
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
匹配中英文括号
Java 8
可以用来替换企业名称中的中英文括号 eg: 阿里巴巴(中国)股份 阿里巴巴(中国)股份
Submitted by
tuan_luo
-
2 years ago
2022-02-10 06:46
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)
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
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Android Package Validation - Java Regex
Java 8
Note: replace the "\." with "\\." if you paste this on your java. The regex will match if the package name is valid. example: my.new.hello.world.app Supports: a-z 0-9 and underscore Supports multiple dots
Submitted by
dlv_dls2
-
2 years ago
2022-02-06 06:30
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
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Extract URL parts only named capturing groups
Golang
Extract URL parts only named capturing groups
Submitted by
dixanms
-
2 years ago
2022-02-03 00:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Rick Roll
Java 8
Matches chorus of Never Going to Give You Up
Submitted by
Stephen Battista
-
2 years ago
2022-02-01 19:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove duplicate lines in sorted text
Java 8
See
Submitted by
@atnbueno
-
2 years ago
2022-01-30 14:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
chia plot
Golang
chia plot
Submitted by
temple
-
2 years ago
2022-01-30 02:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Hitech RTOZONE
Java 8
Checks the registration number's validity
Submitted by
Sid
-
2 years ago
2022-01-23 17:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
java-test1
Java 8
java test string
Submitted by
anonymous
-
2 years ago
2022-01-22 09:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match CLI argument to
Java 8
Matches argumetn to as: -t to -t= ...
Submitted by
rperez-torro
-
2 years ago
2022-01-18 17:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Unreal Engine (UE_LOG) Parser - GoLang version
Golang
This regex is suitable for anyone ingesting UE_LOG files into Loki and creating dashboards in Grafana.
Submitted by
Mike McShaffry
-
2 years ago
2022-01-14 17:48
1
...
6
7
8
9
10
11
12
...
20
Regex for C-style assignments
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Golang
`
(
(
(
(?P<Keys>
dword
|
word
|
byte
|
int
)
[
\n\t
]
+
)
(
(?P<Names>
[
a
-
zA
-
Z0
-
9
_
\-\$
]
+
)
)
)
(
(
\[
(?P<Range>
[
a
-
zA
-
Z0
-
9
\t\n
]
+
)
\]
[
\t\n
]
+
)
|
(?P<Pointer>
[
*
\t\n
]
+
)
|)
(
(
=
[
\n\t
]
+
)
(
[
&*"a
-
zA
-
Z0
-
9
]
+
)
)
(
;
)
)
|
(
(
(?P<Others>
int
|
string
|
word
)
[
\t\n
]
+
)
(
[
a
-
zA
-
Z0
-
9
\n\t
]
+
)
(
;
)
)
`
g
Open regex in editor
Description
Loading markdown...
Submitted by
cemares
-
6 years ago
2018-01-07 22:20