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
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 5,720 community submitted regex patterns...
1
match INTEGER val in range [0 ,32767] for unsigned val and [-32768,-1] for signed val
Python
"(^-?)(3276[0-8]$|327[0-5]?[0-9]$|320-6?[0-9]$|3[0-1]?[0-9]?[0-9]?[0-9]$|[0-2]?[0-9]?[0-9]?[0-9]?[0-9]$)"gm
Submitted by
issam-seghir
-
3 years ago
(Last modified 3 years ago)
1
Track1 credit card dump
ECMAScript (JavaScript)
Captures group that is either AMEX, MC, or Visa with or without start and end sentinels including discretionary data after section for name Does not support 13 digit credit cards, as they are not used anymore. Only allows for 15 digit AMEX and 16 digit Visa or MC
Submitted by
BigDad
-
2 years ago
1
IPv4 + TCP-Port
Java 8
This regex matches a IPv4 with a TCP Port (1-65535) Example: 192.168.0.69:1337 will match and have the groups: Group 1: 192.168.0.69 Group 2: 1337
Submitted by
SIMULATAN
-
2 years ago
1
Minecraft Log Parser 1.0
ECMAScript (JavaScript)
Improvements needed
Submitted by
Crystal
-
2 years ago
1
SharePoint On-Premises Validator
ECMAScript (JavaScript)
SharePoint On-Premises Validator
Submitted by
anonymous
-
2 years ago
1
Numbers only (including decimals) ( JS work fine)
ECMAScript (JavaScript)
Rejects first symbol if 0 and all other non number (doesn't includes .123 )
Submitted by
Sofitt
-
2 years ago
(Last modified 2 years ago)
1
Parse Data Fields
Python
Parsing example
Submitted by
anonymous
-
2 years ago
1
Anything sorounded by " "
ECMAScript (JavaScript)
Match anything inside double quote string and set the first capture group with the content
Submitted by
anonymous
-
2 years ago
1
Rick Roll
Java 8
Matches chorus of Never Going to Give You Up
Submitted by
Stephen Battista
-
2 years ago
1
Telegram Markdown Escaping Backslashed asterisks
ECMAScript (JavaScript)
Telegram Markdown V2's bold (`) can be escaped by using \`. RegExp to validate it and get the actual contents inside.
Submitted by
dcdunkan
-
2 years ago
1
ds100reg2
Python
Data 100 Regular Expressions, adapted from Princeton
Submitted by
anonymous
-
2 years ago
1
Get domain name from URL
Python
Get domain name from URL
Submitted by
anonymous
-
2 years ago
1
Extract time from text
Python
Extract time from text
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
1
Android Package Validation - Java Regex
Java 8
Note: replace the "\." with "\\." if you paste this on your java. The regex will match if the package name is valid. example: my.new.hello.world.app Supports: a-z 0-9 and underscore Supports multiple dots
Submitted by
dlv_dls2
-
2 years ago
1
Paystub Basic Salary
Python
Extract Amount and Date from Paystub
Submitted by
MAJED MUSA GHANIM
-
2 years ago
1
匹配中英文括号
Java 8
可以用来替换企业名称中的中英文括号 eg: 阿里巴巴(中国)股份 阿里巴巴(中国)股份
Submitted by
tuan_luo
-
2 years ago
1
streets with one or more names with unicode characters in python
Python
streets with one or more names with unicode characters in python
Submitted by
Stanicio
-
2 years ago
1
Matching build file names
Java 8
Matches various versions of build file filenames from our jenkins builds
Submitted by
Sean Furrh
-
2 years ago
1
CRON
Python
Validades cron job time specification
Submitted by
anonymous
-
2 years ago
1
Lua Enhanced: function application compound operator
Python
This is a compound operator that takes a variable and a Example: local x = 9 x f(math.max)= 10 compiles to...
Submitted by
anonymous
-
2 years ago
1
...
246
247
248
249
250
...
286
SharePoint On-Premises Validator
1
Regular Expression
ECMAScript (JavaScript)
/
^
https
?
\:\/\/
[
A
-
Za
-
z
]
+
\-
?
\w
+
[^
-.
]
(
(
[
\.
A
-
Za
-
z
]
+
[
-
]
?
[
A
-
Za
-
z
]
+
){0,5}
(
\/
[
\w
+
]
[^
\#\*\:\<\>\\\?
|
]
{0,}
){0,}
[^
\#\*\:\<\>\\\?
|-
]
)
$
/
gm
Open regex in editor
Description
SharePoint On-Premises Validator
Submitted by
anonymous
-
2 years ago