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,040 community submitted regex patterns...
0
spark to scala
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Zabbix
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
SF_KAFKA_CONNECTOR
PCRE (PHP <7.3)
Used for parsing logs of snowflake kafka connector
Submitted by
anonymous
-
5 years ago
0
Get parent folder and file name from full path
PCRE (PHP <7.3)
This expr will get the parent folder and file name from a full path eg: c:\folder1\folder2\folder3\file1.txt returns folder3\file1.txt
Submitted by
anonymous
-
5 years ago
0
CSB34 Account header
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
URL
ECMAScript (JavaScript)
https://regex101.com/r/VC5MsA/4
Submitted by
anonymous
-
5 years ago
0
find including multiline
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Domain validation regex suitable for user input
Golang
This regexp can be used to validate domain names in Golang. While it cannot enforce the 253 character limit (with optional trailing period not included) that can be easily done with a len(domain) <= 253 check. This can be used as-is in other languages, even with RE2 regex engine. Non-capturing grou...
Submitted by
anonymous
-
5 years ago
1
Domain validation regex suitable for user input
Golang
This regexp can be used to validate domain names in Golang. While it cannot enforce the 253 character limit (with optional trailing period not included) that can be easily done by a simple len(domain) <= 253 check as well. This can be used as-is in other languages, even with RE2 regex engine. If po...
Submitted by
Alexander Dupuy
-
5 years ago
0
phone regex validation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Float representation
Python
All float representations that can be consumed by strtod() (string to double function in c) Compatible with flex/bison
Submitted by
anonymous
-
5 years ago
0
cisco show run interface
PCRE (PHP <7.3)
This regex fetches interface ID along with its ip address and description if configured otherwise blank
Submitted by
anonymous
-
5 years ago
0
不能包含字母
ECMAScript (JavaScript)
不能包含字母
Submitted by
anonymous
-
5 years ago
0
中文和数字
ECMAScript (JavaScript)
中文和数字
Submitted by
anonymous
-
5 years ago
0
邮政编码(中国)
ECMAScript (JavaScript)
邮政编码(中国)
Submitted by
anonymous
-
5 years ago
0
微信号,6至20位,以字母开头,字母,数字,减号,下划线
ECMAScript (JavaScript)
微信号,6至20位,以字母开头,字母,数字,减号,下划线
Submitted by
anonymous
-
5 years ago
0
16进制颜色
ECMAScript (JavaScript)
16进制颜色
Submitted by
anonymous
-
5 years ago
0
ip-v6
ECMAScript (JavaScript)
ip-v6
Submitted by
anonymous
-
5 years ago
0
ip-v4
ECMAScript (JavaScript)
ip-v4
Submitted by
anonymous
-
5 years ago
0
用户名校验,4到16位(字母,数字,下划线,减号)
ECMAScript (JavaScript)
用户名校验,4到16位(字母,数字,下划线,减号)
Submitted by
anonymous
-
5 years ago
1
...
337
338
339
340
341
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
^
(
[
a
-
zA
-
Z
]
:
(?=
\\
)
|
\\\\
(?:
[^
\*
:<>?
\\\/
|
]
+
\\
[^
\*
:<>?
\\\/
|
]
+
|
\?\\
(?:
[
a
-
zA
-
Z
]
:
(?=
\\
)
|
(?:
UNC
\\
)?
[^
\*
:<>?
\\\/
|
]
+
\\
[^
\*
:<>?
\\\/
|
]
+
)
)
)
/
Open regex in editor
Description
This extracts the "root" (e.g. drive) from a Windows path. See the unit tests for examples
Submitted by
J5lx
-
10 years ago