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...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract text strings from repeating text fields followed by a suffix
Java 8
This regex expression is useful for extracting only the text string from a value in a column that may contain values from individual rows with repeat strings tagged with a suffix. For example - Row 1: "Sales (#1)", Row 2: "Sales Match (#2)". From the shared examples, this regex will extract the text...
Submitted by
nilotpalc
-
9 days ago
2023-09-22 11:56
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CSV
Java 8
Crude CSV regex to split only by characters surrounded by non-whitespace characters. Ignore that it dosen't highlight all of the other commas in the editor. If you select the g regex flag it will properly show here, but not work in Java. Credit to @merosity (Merosity#0135) on Discord!
Submitted by
Merosity, regice202
-
22 days ago
2023-09-09 10:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
0x28C6A6DdF8fF8A47A90A69bfE75cd89904a14d71
Golang
0x28C6A6DdF8fF8A47A90A69bfE75cd89904a14d71
Submitted by
anonymous
-
a month ago
2023-09-02 02:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match many cases of 8601
Java 8
This is still a working in progress Need to do Unit Tests and search for more use cases Match partial cases of 8601 such as: missing offset missing time...
Submitted by
jpmand
-
a month ago
2023-08-31 11:08
(Last modified a month ago)
2023-08-31 14:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract any link or endpoint
Java 8
Extract any link or endpoint from 1- HTML page source 2- HTTP responses 3- JS files Feel free to contact me on Telegram https://t.me/c4ir0 if you:...
Submitted by
Cairo
-
a month ago
2023-08-25 22:32
(Last modified a month ago)
2023-08-27 08:35
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
-
2 months ago
2023-08-11 19:09
(Last modified 2 months ago)
2023-08-11 21:09
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
html <Title>
Java 8
htnle
Submitted by
erichologist
-
2 months ago
2023-08-09 16:02
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Ascending and Descending order
Java 8
This regex is to match Ascending or descending order of 8 digit number
Submitted by
anonymous
-
2 months ago
2023-07-17 15:51
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Capturing groups with suffix
Java 8
Capturing the content of column names which are duplicate in nature to extract the actual name and suffix ("right" / "left")
Submitted by
anonymous
-
2 months ago
2023-07-17 08:05
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Dart relative import
Java 8
find dart relative import path
Submitted by
sagarpanchal
-
3 months ago
2023-07-11 13:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Catch packages from 'tdnf list' output
Golang
Every valid line will be of the form: . . . NOTE: the distribution tag is expected to start with at least one letter and be followed by at least one digit.
Submitted by
anonymous
-
3 months ago
2023-06-26 18:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Cover dates from 2009 and older in French format and English
Java 8
Covering Dates starting from year 2009 and older in French and English Some of the valid Dates format April 2nd 2008 April 2 2008 April 02 2008...
Submitted by
Francois-Alexandre Valade-Casaubon
-
3 months ago
2023-06-19 17:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Java RegExMatch Example
Java 8
This is an example for stackoverflow
Submitted by
anonymous
-
4 months ago
2023-06-08 12:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Java RegEx Group Test
Java 8
Test
Submitted by
anonymous
-
4 months ago
2023-06-08 12:04
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
APA Citation v1
Java 8
Parse APA v7 citations
Submitted by
mathias v
-
4 months ago
2023-06-08 11:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
detect inner function with recursiion
Java 8
working for all not for java
Submitted by
anonymous
-
4 months ago
2023-06-07 14:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
catch inner element
Java 8
working regex for any
Submitted by
anonymous
-
4 months ago
2023-06-07 14:44
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
JabRef biblatex alphabetic adaption
Java 8
A regex used to emulate the biblatex alphabetic citation key style in JabRef: https://discourse.jabref.org/t/use-field-markers-in-regex-for-citation-key-generator/3842
Submitted by
anonymous
-
4 months ago
2023-06-06 15:00
(Last modified 4 months ago)
2023-06-06 16:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Martch Letras y Parentesis
Java 8
Martch Letras y Parentesis
Submitted by
Daniel Gonzalez
-
4 months ago
2023-05-26 00:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Riedler's 2nd URL regex
Java 8
why did I make this?
Submitted by
Riedler
-
5 months ago
2023-05-14 22:10
1
2
3
4
...
20
json value extract
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
Java 8
"
[
:
]
\s
(
\"
.
*
\"
)
|
\d
+
"
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
6 months ago
2023-04-01 02:24