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...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Delete spaces between words only
PCRE (PHP <7.3)
Delete spaces between words only
Submitted by
anonymous
-
2 years ago
2022-04-09 06:40
(Last modified 2 years ago)
2022-04-09 08:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Delete spaces at beginning or end of a string
PCRE (PHP <7.3)
Delete spaces at beginning or end of a string
Submitted by
anonymous
-
2 years ago
2022-04-09 06:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
password strong
PCRE (PHP <7.3)
password 8-16 with A-Z a-z 0-9 and !@#$ without %
Submitted by
alfxjx
-
2 years ago
2022-04-15 02:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
find email addresses
Golang
find email addresses
Submitted by
anon
-
2 years ago
2022-04-15 18:57
(Last modified 2 years ago)
2022-04-15 19:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
OS正则表达式
Java 8
zzx
Submitted by
zzx
-
2 years ago
2022-04-20 12:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
DB
Java 8
DB
Submitted by
DB
-
2 years ago
2022-04-20 12:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
cri logfmt
Golang
The CRI expr will match and parse log lines of this format: 2019-01-01T01:00:00.000000001Z stderr P some log message `
Submitted by
east4ming
-
2 years ago
2022-04-21 01:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
括号匹配
Java 8
(\[]\])|(【】)|(())|(\(\))
Submitted by
nasion
-
2 years ago
2022-04-21 11:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find next valid markup element of XML content
PCRE (PHP <7.3)
I created the regexp using the XML-specificaton (https://www.w3.org/TR/xml), but in a simplified format (for example allowing only a narrowed set of tag-name characters). The regular expression is a recursive regexp with backreference. I do not tested extensively the regex with a regex-directed engi...
Submitted by
GyRos
-
2 years ago
2022-04-24 13:21
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
IP Address
Java 8
IP Address RegEx
Submitted by
anonymous
-
2 years ago
2022-04-24 15:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
匹配#结尾的电话号码和手机
Java 8
匹配#结尾的电话号码和手机
Submitted by
Leo
-
2 years ago
2022-04-26 03:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Jira issue number
Golang
Matches and catches Jira issue number
Submitted by
anonymous
-
2 years ago
2022-04-26 09:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
#结尾的电话匹配
Java 8
#结尾的电话匹配
Submitted by
anonymous
-
2 years ago
2022-04-26 14:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
判断是否有非法字符(合法字符为数字+-# 以及{"0":0, "1":1}所包含的符号)
Java 8
判断是否有非法字符(合法字符为数字+-# |以及{"0":0, "1":1}所包含的符号) 能捕获的:包含汉字、英文字符、部分分割符(;、/)、各种括号的电话
Submitted by
Jiajian Ye
-
2 years ago
2022-04-26 14:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
lower case alpha and number
PCRE (PHP <7.3)
lower case alpha and number
Submitted by
anonymous
-
2 years ago
2022-04-27 02:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Golang Docker matcher
Golang
Used by me for docker-retagger
Submitted by
Roman Minebaev
-
2 years ago
2022-04-28 18:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Username Middle name Surname regex matcher
Java 8
Username Middle name Surname regex matcher
Submitted by
Nikola
-
2 years ago
2022-05-03 16:35
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
basic gitlab rule for job to not be runned automaticaly for specific branch
PCRE (PHP <7.3)
rules: if: '$CI_COMMIT_BRANCH !~ /^release|hotfix|$CI_DEFAULT_BRANCH\/.*$/' when: manual allow_failure: true when: always `
Submitted by
Kramtoske
-
2 years ago
2022-05-04 08:04
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Time in hh:mm:ss
PCRE (PHP <7.3)
19h32min16s
Submitted by
anonymous
-
2 years ago
2022-05-05 22:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Something...
Java 8
Look for all entries of a country on a list that can have repeated values
Submitted by
anonymous
-
2 years ago
2022-05-06 10:59
1
...
467
468
469
470
471
472
473
...
481
Golang Docker matcher
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Golang
`
(?P<Registry>
[
a
-
z0
-
9
\-
.
]
+
\.
[
a
-
z0
-
9
\-
]
+
:
?
[
0
-
9
]
*
)?
/
?
(
(?P<Name>
[
a
-
zA
-
Z0
-
9-_
]
+
?
)
|
(?P<UserName>
[
a
-
zA
-
Z0
-
9-_
]
+
?
)
/
(?P<ImageName>
[
a
-
zA
-
Z-_
]
+
?
)
)
(
:
(?P<Tag>
[
a
-
zA
-
Z0
-
9-_
\\
.
]
+
?
)
|)
$
`
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Roman Minebaev
-
2 years ago
2022-04-28 18:42