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 2,260 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
EC21 docs
Python
Get AT explain
Submitted by
anonymous
-
a year ago
2022-08-18 04:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
... at start or end of line including whitespace
Python
Used to format kaggle dataset
Submitted by
anonymous
-
a year ago
2022-08-18 13:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match Date From DateTime ISO 8601
Golang
Match Date From DateTime ISO 8601
Submitted by
kuyaninja
-
a year ago
2022-08-22 10:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Ruby Gemspec Versioning
Golang
Determine the version value in a gemspec configuration file
Submitted by
Ori
-
a year ago
2022-08-30 13:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
number two decimal digit
Python
.
Submitted by
anonymous
-
a year ago
2022-09-05 12:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
AyL
Python
Example of re and substitutions with csv file
Submitted by
Ing Daniel Pérez
-
a year ago
2022-09-07 14:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Postcodes
Python
This identifies whether a postcode (four numbers, two letters has been provided)
Submitted by
anonymous
-
a year ago
2022-09-13 09:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Project
Python
Project
Submitted by
anonymous
-
a year ago
2022-09-14 12:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
S3 Path with ending .json
Golang
S3 Path with ending .json
Submitted by
Sowmith
-
a year ago
2022-09-15 14:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
valid date
Python
this regular expression is for validating dates in yyyy-mm-dd format
Submitted by
anonymous
-
a year ago
2022-09-17 10:46
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
extract title and page from ocr of pdf content by carlleonhard
Python
extract title and page from ocr of pdf content by carlleonhard
Submitted by
carlleonhard
-
a year ago
2022-09-18 04:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
foengz1
Python
htmltag
Submitted by
Foengz
-
a year ago
2022-09-19 05:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Changed files in "git pull" output.
Python
Get the changed files from the "git pull" output. Use finditer to get a list of Matches.
Submitted by
anonymous
-
a year ago
2022-09-21 13:28
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Python find {vars}
Python
Find every used variable in string between { and }
Submitted by
anonymous
-
a year ago
2022-09-21 14:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Prefixed numerics
Python
Search regex for prefixed numerics (kB, Mb. ms. kHz etc.)
Submitted by
delameter
-
a year ago
2022-09-23 16:47
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get project name from git url
Golang
Used by Zarf to obtain the name of a repository when given a git URL.
Submitted by
Jonathan Perry
-
a year ago
2022-09-26 13:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Sizes
Python
Getting sizes, formatted as in x or x. It supports up to 3 digits, with an additional, optional, decimal digit. The decimal point could be a comma, a point or even an apostrophe ( ' ).
Submitted by
Hermes
-
a year ago
2022-09-28 07:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Split URL
Python
source = "https://regex101.com/r/Y5b7zZ/3" result = ("https", "regex101.com", "/r/Y5b7zZ/3") `
Submitted by
saparapat
-
a year ago
2022-10-01 18:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
bkengine多行宏正则解析
Python
用于解析bkengine的宏代码 如果代码的开头是形如// 这种注释,你需要先通过编程代码手动判断此行的开头是否为注释,如果是,则不处理后面的diam 如果注释在宏代码的后面 此正则不会处理在尾部的单行注释 注:此宏仅支持当行宏匹配(多行宏匹配可能会出现小问题)
Submitted by
小沙盒工作室
-
a year ago
2022-10-02 02:31
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
bkengine多行宏解析器
Python
简体中文: 用于解析bkengine的宏代码 如果代码的开头是形如// 这种注释,你需要先通过编程代码手动判断此行的开头是否为注释,如果是,则不处理后面的diam 如果注释在宏代码的后面 此正则不会处理在尾部的单行注释 注:此宏仅支持当行宏匹配(多行宏匹配可能会出现小问题)...
Submitted by
小沙盒工作室
-
a year ago
2022-10-02 04:34
(Last modified a year ago)
2022-10-02 04:35
1
...
100
101
102
103
104
105
106
...
113
Die roll parser
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Python
r"
^
(?:
(
[
0
-
9
]
*
)
(?=
[
Dd
]
)
)?
[
Dd
]
?
(
[
0
-
9
]
+
)*
(?:
(
[
+-
]
?
[
0
-
9
]
*
)
)
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
5 years ago
2018-08-20 21:35