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,440 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Siebel Id
Golang
no description available
Submitted by
anonymous
-
7 years ago
2016-11-03 10:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
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
-
4 years ago
2020-03-22 22:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Traefik stripprefixregex for web apps
Golang
Notes: Do not forget to escape the $ by an additional $. Escaping ? like \? does not work. But you could use [?] instead End result should be like this: "traefik.http.middlewares.r6tt-dev-web.stripprefixregex.regex=^/[a-z0-9/]+[a-z0-9]+([?]+.*)?$$"...
Submitted by
anonymous
-
3 years ago
2020-07-17 12:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Flexible box
Golang
no description available
Submitted by
anonymous
-
3 years ago
2020-07-30 16:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Lxx Wurzel
Golang
no description available
Submitted by
anonymous
-
3 years ago
2020-08-07 05:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
windows file name from full path
Golang
Find all string matches with dir, one or more subdir, file name with optional extension. Common example with all capturing groups included: C://ProgramFiles/MyDir1/myDir2/file.ext
Submitted by
anonymous
-
3 years ago
2020-08-10 22:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Unix file with full path
Golang
Find all string matches with dir, one or more subdir, file name with optional extension. Common example with all capturing groups included: ../../dir/SubDir1/SubDir2/file.ext ...
Submitted by
anonymous
-
3 years ago
2020-08-10 22:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
PHP Class Capture Groups from symbol string for Class, Namespace, Operation (Mutator or Accessor), Target and Method Names
PCRE2 (PHP >=7.3)
The is helpful for parsing the symbolic reference of a PHP class object for validation or just determining the type and target for the operator. The expression is intended for working with classes and class methods, so the value on the right of the Paamayim Nekudotayim :: will alway be regarded as ...
Submitted by
Jacob Canote
-
3 years ago
2021-02-06 05:32
(Last modified 3 years ago)
2021-02-06 10:07
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
^(?:\d+[a-z]|[a-z])(?:\^\d+)(?:[\+|\-])(?:\d+[a-z])(?:[\+|\-])(?:\d+\=\d+)
Golang
for quadratic equations ||ax^2+bx+c=d||
Submitted by
anonymous
-
3 years ago
2021-01-14 02:14
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Custom IFrame SRC Grabber
PCRE2 (PHP >=7.3)
no description available
Submitted by
Moep
-
3 years ago
2021-01-23 14:08
(Last modified 3 years ago)
2021-01-23 14:09
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
验证金额 "-999999999.99 ~ 999999999.99" ,小数点保留2位
PCRE2 (PHP >=7.3)
验证阿拉伯数字金额 "-999999999 ~ 999999999" ,小数点后面保留2位
Submitted by
cp.l
-
3 years ago
2021-02-10 06:17
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
StrongPassword: 1 uppercase, 1 lower case, 1 num, 1 \W, & at least 8 char
PCRE2 (PHP >=7.3)
no description available
Submitted by
Bri Baldwin
-
3 years ago
2021-02-19 19:22
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
MyRegEx
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
3 years ago
2021-02-23 15:47
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Dutch mobile phone number
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
3 years ago
2021-02-24 15:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Gitlab GraphQl query finder
PCRE2 (PHP >=7.3)
Searches for the first list element in a graphql query, which allows for filtering and pagination, except for the group node
Submitted by
Thomas Luijken
-
3 years ago
2021-03-10 15:47
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
OhArthit
PCRE2 (PHP >=7.3)
ผลิตภัณฑ์ส่งเสริมการขาย
Submitted by
anonymous
-
3 years ago
2021-03-18 09:17
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
E.164 ITU Telephony Standard including Extensions
PCRE2 (PHP >=7.3)
Basic RegEx to catch ITU E.164 Formatted Telephone Numbers. Must include leading '+', first digit cannot be a zero, no other non-numeric characters -- with (optional) exception of Extensions denoted by ";ext=" and between 3 and 6 digits in the extension (adjust max to suit organization)
Submitted by
ADWolf
-
3 years ago
2021-03-18 22:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
QBAR Atom Regex
PCRE2 (PHP >=7.3)
Regular expression to match atoms. See qbar.io/docs.html#expression-language-atom for more information.
Submitted by
bhgomes
-
3 years ago
2021-03-22 20:27
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Telephone Number for Colombia
PCRE2 (PHP >=7.3)
Permite validar un número celular en colombia
Submitted by
macorreag
-
3 years ago
2021-03-27 17:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Signed numbers with optional decimal part (comma or dot)
PCRE2 (PHP >=7.3)
Signed numbers with optional decimal part (comma or dot)
Submitted by
ImAlbi57
-
2 years ago
2021-04-08 22:55
1
2
3
4
5
6
7
...
122
Dutch zipcodes
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(?:
NL-
)?
(?:
[
1
-
9
]
\d
{3}
?
(?:
[
A
-
EGHJ
-
NPRTVWXZ
]
[
A
-
EGHJ
-
NPRSTVWXZ
]
|
S
[
BCEGHJ
-
NPRTVWXZ
]
)
)
$
/
i
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
3 years ago
2021-02-24 15:54
(Last modified 3 years ago)
2021-02-24 16:08