Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,020 community submitted regex patterns...
0
去除首尾空格
Python
去除首尾空格
Submitted by
anonymous
-
2 years ago
0
`git` URL
Python
Match git URL components (including partial URLs).
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
matches 4 or 6 or 8 digit which might be otp
PCRE2 (PHP >=7.3)
test
Submitted by
test
-
2 years ago
0
bkengine 多行宏词法分析 添加了分组参数
Python
bkengine 多行宏词法分析 添加了分组参数
Submitted by
小沙盒工作室
-
2 years ago
0
bkengine多行宏解析器
Python
简体中文: 用于解析bkengine的宏代码 如果代码的开头是形如// 这种注释,你需要先通过编程代码手动判断此行的开头是否为注释,如果是,则不处理后面的diam 如果注释在宏代码的后面 此正则不会处理在尾部的单行注释 注:此宏仅支持当行宏匹配(多行宏匹配可能会出现小问题)...
Submitted by
小沙盒工作室
-
2 years ago
(Last modified 2 years ago)
0
bkengine多行宏正则解析
Python
用于解析bkengine的宏代码 如果代码的开头是形如// 这种注释,你需要先通过编程代码手动判断此行的开头是否为注释,如果是,则不处理后面的diam 如果注释在宏代码的后面 此正则不会处理在尾部的单行注释 注:此宏仅支持当行宏匹配(多行宏匹配可能会出现小问题)
Submitted by
小沙盒工作室
-
2 years ago
1
Regex for url
ECMAScript (JavaScript)
Regex for url
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
Split URL
Python
source = "https://regex101.com/r/Y5b7zZ/3" result = ("https", "regex101.com", "/r/Y5b7zZ/3") `
Submitted by
saparapat
-
2 years ago
0
Match and capture (go) one or more times
PCRE2 (PHP >=7.3)
Match and capture (go) one or more times
Submitted by
anonymous
-
2 years ago
1
Percentage regex
ECMAScript (JavaScript)
Percentage regex allows integer and float values e.g. 10 // valid 12 // valid 12.34 // valid 12.345 // invalid 99.99 // valid...
Submitted by
Ankit Patel
-
2 years ago
0
Extract countries names in a spaceless string
PCRE2 (PHP >=7.3)
works with strings such as: U.K.TanzaniaU.S.A., UkraineFrance, GermanyU.S.A. Issues: Doesn't work with repeating acronyms, e.g.: U.K.U.S.A.; possible fix: (?:[A-Z]\.){1,3}|A-Z+ Works only with country's acronyms that have the same number of dots as the number of capital letters
Submitted by
whatserface
-
2 years ago
0
InputInteger
PCRE2 (PHP >=7.3)
InputInteger
Submitted by
anonymous
-
2 years ago
0
hidrologia
PCRE2 (PHP >=7.3)
qualidade
Submitted by
anonymous
-
2 years ago
0
Get X range of words from a string
PCRE2 (PHP >=7.3)
Get words in a certain range from a varied string
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
1
RegEX IBAN SEPA with spaces
ECMAScript (JavaScript)
RegEX IBAN SEPA with spaces
Submitted by
Karim MB
-
2 years ago
1
Find duplicate char in a string
ECMAScript (JavaScript)
it was used in this codewar challenge. and i find i really interesting. Also u can Write it like this if you want /(.)\1+/g it works exactly the same
Submitted by
anonymous
-
2 years ago
0
Url breakdown
PCRE2 (PHP >=7.3)
Check validity of url and break it down into logical parts.
Submitted by
jokle
-
2 years ago
0
match a substring starting from a word and ending at a word
PCRE2 (PHP >=7.3)
match a substring starting from a word and ending at a word
Submitted by
anonymous
-
2 years ago
0
Sélectionner le contenu entre parenthèses
PCRE2 (PHP >=7.3)
Sélectionner le contenu entre parenthèses (parenthèses comprises)
Submitted by
scalpa
-
2 years ago
0
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
-
2 years ago
1
...
110
111
112
113
114
...
901
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
^
[
\w\d
-
]
+
(?:
\.
[
\w\d
-
]
+
)*
@
[
\w\d
]
+
\.
[
\w
]
{1,10}
$
/
gm
Open regex in editor
Description
Simple Regex that matches most emails
Submitted by
anonymous
-
6 years ago