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 11,860 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match all Tailwind CSS classes prefixed with dark:
PCRE2 (PHP >=7.3)
A simple expression for removing Tailwind CSS classes that are prefixed with dark: from your HTML. Can be easily changed to remove any other classes with a specific prefix. I made this so I could easily remove dark mode from Tailwind CSS components I find online.
Submitted by
hexrw
-
3 months ago
2023-09-06 21:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
git url dissecting
PCRE2 (PHP >=7.3)
the various parts of a git url are dissected and made available in the respective capture groups
Submitted by
anonymous
-
3 months ago
2023-09-06 16:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Capturing elements inside square brackets
PCRE2 (PHP >=7.3)
Using regex, you can use a pattern that takes three comma-separated elements and then extracts the third element from inside the brackets.
Submitted by
anonymous
-
3 months ago
2023-09-06 14:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
DSL tags missing closing pair tags
PCRE2 (PHP >=7.3)
Checking whether all [b] tag pairs are present in *.dsl text
Submitted by
anonymous
-
3 months ago
2023-09-04 23:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Full name split
PCRE2 (PHP >=7.3)
It allows to divide the full name into its three parts
Submitted by
anonymous
-
3 months ago
2023-09-04 14:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
remove Markdown language Wrapper
PCRE2 (PHP >=7.3)
to remove language wrapper in markdown files
Submitted by
Mohamed Elserety
-
3 months ago
2023-09-04 14:10
(Last modified 3 months ago)
2023-09-04 14:13
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)
Validate local host or local network
PCRE2 (PHP >=7.3)
Validate localhost:port, 127.0.:port, 192.168.:port
Submitted by
anonymous
-
3 months ago
2023-09-04 04:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
regex chuoi tieng viet tuong doi
PCRE2 (PHP >=7.3)
aa
Submitted by
anonymous
-
3 months ago
2023-09-03 17:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
line end marker
PCRE2 (PHP >=7.3)
marks ends of lines with ; (if you wrote something as an example in python and switched to php and you are too lazy to write ; after each line) doesnt marks it where its not supposed to mark (after { ( [ = , : and ; as an example
Submitted by
anonymous
-
3 months ago
2023-09-03 09:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Nginx Ingress
PCRE2 (PHP >=7.3)
Nginx-Ingress Pattern
Submitted by
GauravKT
-
3 months ago
2023-09-02 16:38
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)
No double same-letter
PCRE2 (PHP >=7.3)
Hello!!!!!.... -> Helo!.
Submitted by
Deniz-seckin55
-
3 months ago
2023-09-01 12:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
filter branch name in git
PCRE2 (PHP >=7.3)
skip everything before the real last branch name
Submitted by
anonymous
-
3 months ago
2023-09-01 09:53
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)
VSCode TODO Tree regex
PCRE2 (PHP >=7.3)
Little tweaks to highlight tags in docblock comments also: /* NOTE */ ...
Submitted by
ced404
-
3 months ago
2023-08-30 07:46
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Numero PDA
PCRE2 (PHP >=7.3)
Consente di controllare l'esattezza del numero di Porto d'armi
Submitted by
Principio Tudisco
-
3 months ago
2023-08-29 23:45
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match RFC1918 And Localhost
PCRE2 (PHP >=7.3)
Matches RFC1918 and Localhost ips.
Submitted by
nck
-
3 months ago
2023-08-29 00:07
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Validar password
PCRE2 (PHP >=7.3)
Regex para validar una contraseƱa con un minimo 8 caracteres, maximo 16 y debe incluir minusculas, mayusculas, digitos y un caracter especial. Todo sin espacios
Submitted by
anonymous
-
3 months ago
2023-08-27 18:39
(Last modified 3 months ago)
2023-08-27 18:46
1
...
5
6
7
8
9
10
11
...
593
ESET LiveGuard Advanced domains (DNS)
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
r
|
d
)
\.
edtd
\.
eset
\.
com
$
/
gmi
Open regex in editor
Description
Loading markdown...
Submitted by
kernelmustard
-
6 months ago
2023-06-14 14:36