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 17,260 community submitted regex patterns...
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
-
a month 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
-
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)
VSCode TODO Tree regex
PCRE2 (PHP >=7.3)
Little tweaks to highlight tags in docblock comments also: /* NOTE */ ...
Submitted by
ced404
-
a month 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
-
a month 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
-
a month ago
2023-08-29 00:07
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Funny Discord Thing
.NET (C#)
Submitted by
Deniz-seckin55
-
a month ago
2023-08-28 15:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Discord Message JSON
.NET (C#)
Regex for a Discord Message as JSON Example JSON for Regex: { "id": "1145344233713188874",...
Submitted by
Deniz-seckin55
-
a month ago
2023-08-28 15:32
(Last modified a month ago)
2023-08-28 16:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Discord Message JSON
.NET (C#)
Regex for one Discord Message
Submitted by
Deniz-seckin55
-
a month ago
2023-08-28 15:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Validate Wikipedia URL and extract Article Title
ECMAScript (JavaScript)
This works against a list of hyperlinks from the 'USS Marmora (1862)' article You can include File: pages by removing the File:| from the regex. I could improve how the remaining query for urls containing index.php, for now I recommend splitting in your chosen programming language. ...
Submitted by
Martin Shaw
-
a month ago
2023-08-28 03:16
(Last modified a month ago)
2023-08-28 03:58
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
-
a month ago
2023-08-27 18:39
(Last modified a month ago)
2023-08-27 18:46
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
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Hungarian license plates from 2022
PCRE2 (PHP >=7.3)
All regular and vanity Hungarian plates are included. Special plates, police, ambulance, etc. are not included.
Submitted by
gergelyfuzi
-
a month ago
2023-08-25 12:16
(Last modified a month ago)
2023-08-25 12:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
ISO 3166-1 alpha 2
PCRE2 (PHP >=7.3)
Sourced from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
Submitted by
anonymous
-
a month ago
2023-08-23 13:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
ISO 639-1
PCRE2 (PHP >=7.3)
Matches ISO 639-1 language codes. Sourced from https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
Submitted by
Jason Whitehead
-
a month ago
2023-08-23 12:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Nz postcodes - Auckland region
ECMAScript (JavaScript)
A regex to find if a postcode is in Auckland region (New Zealand)
Submitted by
brenmurrell
-
a month ago
2023-08-23 09:47
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
regex101: RFC1918 Private IPv4 Addresses, but limited to matching /24 subnet host IDs
PCRE2 (PHP >=7.3)
POSIX ERE compatible, suitable for usage in Bash [ testing Attributions Derived from [regex101: RFC1918 - Private IPv4 addresses by 0100101101001.
Submitted by
anonymous
-
a month ago
2023-08-23 07:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Email Regex
ECMAScript (JavaScript)
ECMAScript simple regex for email validation
Submitted by
@marquesjob
-
a month ago
2023-08-20 17:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match emoji in emoji-zwj-sequences.txt
Python
Match emoji in emoji-zwj-sequences.txt
Submitted by
anonymous
-
a month ago
2023-08-18 14:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CH IBAN in Text finden
PCRE2 (PHP >=7.3)
Der Ausdruck findet alle CH (Schweizer) IBAN (International Bank Account Number) in einem beliebigen Text.
Submitted by
anonymous
-
a month ago
2023-08-18 14:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
emoji-test.txt
Python
emoji-test.txt
Submitted by
anonymous
-
a month ago
2023-08-18 12:53
1
2
3
4
5
6
7
...
863
Enum map to test cases
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
[
\t
]
*
(
[
\w
.
]
+
)
=>
(
[
\w
.
]
+
)
[
,
]
*
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
DenKu1
-
10 months ago
2022-11-16 15:23