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,880 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Money format
PCRE2 (PHP >=7.3)
Any money format
Submitted by
anonymous
-
2 years ago
2022-04-24 15:29
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)
Branch naming policy for internal GitHub
PCRE2 (PHP >=7.3)
To enforce branch names to include specific prefix and not allow some special characters.
Submitted by
TParry
-
2 years ago
2022-04-25 09:26
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)
正規表現例
PCRE2 (PHP >=7.3)
正規表現の例です
Submitted by
anonymous
-
2 years ago
2022-04-26 07:32
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)
Find a word after an immediate pattern of characters
PCRE2 (PHP >=7.3)
This is done for finding data that is allocated after a defined pattern of letters. In this case the example is, after MID, finding the MID number in a raw data string.
Submitted by
anonymous
-
2 years ago
2022-04-26 20:24
(Last modified 2 years ago)
2022-04-26 20:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Trim leading filename id
PCRE2 (PHP >=7.3)
Removes two numbers and an underscore
Submitted by
anonymous
-
2 years ago
2022-04-26 21:39
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)
Ending with New line or Blank Space
PCRE2 (PHP >=7.3)
this expression can be added to the end of a regular expression to match words which can end with NEW LINE or BLANK SPACE.
Submitted by
J. V. L. Alves
-
2 years ago
2022-04-27 12:41
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Among us detector
PCRE2 (PHP >=7.3)
Detects among us in various formats.
Submitted by
anonymous
-
2 years ago
2022-04-27 15:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Name title checker
PCRE2 (PHP >=7.3)
For things like Mr. Xyz, or Jr. Abcd.
Submitted by
anonymous
-
2 years ago
2022-04-27 15:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Missing copyright detector for Rider (PCRE2)
PCRE2 (PHP >=7.3)
Detects one match per file if that file is missing the expected copyright text. This works with JetBrains Rider IDE. If you are using Visual Studio (.NET), you can replace the \Q and \E with \b
Submitted by
Kris Morness
-
2 years ago
2022-04-27 16:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match all periods except the file extension
PCRE2 (PHP >=7.3)
Match all periods except the file extension
Submitted by
anonymous
-
2 years ago
2022-04-28 06:51
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)
Get any Tariff number used in the HTS for Customs
PCRE2 (PHP >=7.3)
Tariff number format grabber for any customs related stuff
Submitted by
anonymous
-
2 years ago
2022-04-28 20:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Improved HTS matcher
PCRE2 (PHP >=7.3)
For all customs related HTS stuff, you can now put the CBP document you need here and just grab all those tasty, tasty HTS numbers with this handy formula. Cheers!
Submitted by
anonymous
-
2 years ago
2022-04-28 20:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Before a word
PCRE2 (PHP >=7.3)
Gets strings before or after a word
Submitted by
SuperMAC
-
2 years ago
2022-04-29 21:28
1
...
535
536
537
538
539
540
541
...
594
하나의 문자열에서 빈칸(스페이스)가 하나만 나오도록 하는 정규식
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
[
a
-
zA
-
Z
]
+
(?:
[
a
-
zA
-
Z
]
+
)*
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-06-24 07:34