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)
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
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)
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)
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)
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)
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)
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
-
7 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
1
...
7
8
9
10
11
12
13
...
20
Checks for PHP classes with namespaces that haven't been imported.
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Golang
`
(?:
implements
|
new
|
@var
|
extends
)
\s
*
(?P<fullNamespace>
\\
[
A
-
Za
-
z
]
+
|
[
A
-
Za
-
z
]
+
?
(?:
\\
(?P<class>
[
A
-
Za
-
z
]
+
)
)+
)
`
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
6 years ago
2017-12-16 04:51