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,480 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Javascript =>Strict Conditinal Operators
PCRE (PHP <7.3)
// @desc Replaces conditional operators with strict variant /* Matches == */ if (e.keyCode == 68) { doCode() } /* Replacement */ if (e.keyCode === 70) { doCode() } /* Problem != */ if (e.keyCode != 69) { doCode() } /* Replacement */ if (e.keyCode !== 71) { doCode() }...
Submitted by
disk0
-
4 years ago
2019-10-15 04:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
generic regular expression for matching text between brackets
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-15 06:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regular expression for matching text between brackets and the number after the bracket
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-15 06:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regular expression for matching text between brackets and the number after the bracket
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-15 06:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regex 2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-15 07:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Mot de passe robuste
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-15 14:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Adresse IPv4
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-15 16:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Mot de passe robuste
PCRE (PHP <7.3)
(([a-zA-Z0-9])()([a-zA-Z0-9])().)
Submitted by
anonymous
-
4 years ago
2019-10-15 14:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
date
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-15 14:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find (-) at beginning of line or (-) when preceded by whitespace
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-15 16:08
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
date
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-15 16:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
date
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-15 16:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
multi-select with lookahead
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-15 17:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-15 17:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Fixed format for Customer Reference
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-15 19:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
select file in http address
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-16 10:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
attendance compromise
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-16 13:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Immatriculation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-16 14:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Numero gsm
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-16 15:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Operation arithmetique
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-10-16 15:05
1
...
516
517
518
519
520
521
522
...
574
i18next Resource key
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(?:
[
a
-
z
]
(?:
[
a
-
z0
-
9
]
|
-
(?!
$
|
-
)
)*
\:
?
(?!
$
)
)?
(?:
[
a
-
z
]
(?:
[
a
-
z0
-
9
]
|
-
(?!
$
|
-
)
)*
(?:
\.
(?!
$
)
)?
)+
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
2 years ago
2022-05-10 04:38
(Last modified 2 years ago)
2022-05-10 04:39