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 9,620 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
House and Senate Bills
Golang
Match a House or Senate bill in text.
Submitted by
Jason Putorti
-
21 hours ago
2023-12-05 16:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
文件名称验证
Java 8
操作系统文件名称验证,参考了Windows,Linux,Mac
Submitted by
腾龙问天
-
5 days ago
2023-12-01 16:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
verifyIPV6
Java 8
verificare indirizzo IPV6 (regole base)
Submitted by
Luigi Piccinni
-
16 days ago
2023-11-20 15:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Check Email Validity
Java 8
Regular expression to check the email syntax validity. Certainly requires improvement, but it's a good basis to work from. Work with Java and JavaScript.
Submitted by
Alain TOMASIAN <alain.tomasian@kaptus.fr>
-
21 days ago
2023-11-15 10:54
(Last modified 21 days ago)
2023-11-15 17:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Gradient for minecraft
Java 8
This is for my plugin project
Submitted by
Trần Thế Anh
-
22 days ago
2023-11-14 09:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
77870294
PCRE (PHP <7.3)
618001/041881 564094
Submitted by
960203095053
-
24 days ago
2023-11-12 11:36
(Last modified 24 days ago)
2023-11-12 11:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Kafka loki parser
Golang
Kafka loki parser
Submitted by
anonymous
-
a month ago
2023-10-24 21:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Youtube Video ID
Java 8
Extract youtube video ID
Submitted by
anonymous
-
2 months ago
2023-10-18 07:16
(Last modified a month ago)
2023-10-26 14:06
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
-
2 months ago
2023-09-22 11:56
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
groupping math every 2 comma separator
PCRE (PHP <7.3)
i have paste \n after every 2-th comma using sed sed 's/\(\(*,\)\{2\}\)/\1\n/g'
Submitted by
sanekmihailow
-
3 months ago
2023-09-19 18:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Remove specific parameter from URL
PCRE (PHP <7.3)
This pattern finds a parameter (sst) key + value in a GET request URL. When replaced with an empty string, effectively removes the parameter. Works with both full URLs and isolated query strings. Works in PCRE and PCRE2. Full use case: if (isset($_GET["sst"])) { // validate...
Submitted by
Martin Holt
-
3 months ago
2023-09-13 00:35
(Last modified 3 months ago)
2023-09-13 00:41
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
-
3 months ago
2023-09-09 10:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Opportunity Close
PCRE (PHP <7.3)
Prepare batch job for opportunity close
Submitted by
wistlo
-
3 months ago
2023-09-08 17:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Adds custom prefix to tailwind classes
PCRE (PHP <7.3)
Or any other particular case where given any line that starts with the pattern "@apply" (or any other line heading) and it substitutes any word (list of characters without spaces), with or without puntuation in them, and it adds a custom prefix to all the words in that line but the line heading.
Submitted by
@drakopablo.dev
-
3 months ago
2023-09-04 10:51
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Invalid Windows Filename Chars
PCRE (PHP <7.3)
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file Integer value zero, sometimes referred to as the ASCII NUL character. Characters whose integer representations are in the range from 1 through 31, except for alternate data streams where these characters are allowed. For more info...
Submitted by
anonymous
-
3 months ago
2023-09-04 05:47
(Last modified 3 months ago)
2023-09-04 05:54
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
0x28C6A6DdF8fF8A47A90A69bfE75cd89904a14d71
Golang
0x28C6A6DdF8fF8A47A90A69bfE75cd89904a14d71
Submitted by
anonymous
-
3 months 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
-
3 months ago
2023-08-31 11:08
(Last modified 3 months 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
-
3 months ago
2023-08-25 22:32
(Last modified 3 months 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
-
4 months ago
2023-08-11 19:09
(Last modified 4 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
-
4 months ago
2023-08-09 16:02
1
2
3
4
...
481
Match many cases of 8601
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
Java 8
"
^
(?<year>
\d
{4}
)
[
-
\/
]
(?<month>
0
[
1
-
9
]
|
1
[
0
-
2
]
)
[
-
\/
]
(?<day>
0
[
1
-
9
]
|
[
1
-
2
]
[
0
-
9
]
|
3
[
0
-
1
]
)
(?:
[
T
\s
]
(?:
(?<hour>
0
[
0
-
9
]
|
1
[
0
-
9
]
|
2
[
0
-
4
]
)
:
(?<minute>
\d
{2}
)
:
(?<second>
\d
{2}
)
(?:
\.
(?<nano>
\d
+
)
)?
)
)?
(?:
(?<offset>
[
Zz
]
|
(?:
[
+-
]
)
(?:
[
01
]
\d
|
2
[
0
-
3
]
)
(?:
:
?
[
0
-
5
]
\d
)?
)?
)
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
jpmand
-
3 months ago
2023-08-31 11:08
(Last modified 3 months ago)
2023-08-31 14:32