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 2,100 community submitted regex patterns...
2
Ansible Host Var checking
Python
We had an issue where the "hosts=some_var" value could cause mass deployments if the wrong value was passed through. Specifically a comma with nothing surrounding it (i.e. "hosts=,"). This regex will allow us to fail when certain characters are present.
Submitted by
anonymous
-
8 years ago
2
Extract fields from repository url
Python
It is used to extract fields from the repository URL Works in Python and JS Group1 : protocol (Such as http or https) Group2 : domain (Such as github.com or gitlab.com) Group3: Name space (Such as your personal namespace or project namespace) Group4: Project name (Such as your project name)...
Submitted by
anonymous
-
5 years ago
2
lottery data picker
Python
for azlottoapi
Submitted by
anonymous
-
4 years ago
2
IpAddress
Python
Ensure the ip address format is correct
Submitted by
aaa
-
4 years ago
2
Replace dotnet assembly versions
Python
Replaces both VB & C# AssemblyInfo files.
Submitted by
ankostis
-
3 years ago
(Last modified 3 years ago)
2
Extract parts of a URL on Python
Python
Extract parts of a URL on Python
Submitted by
dixanms
-
3 years ago
2
Lua Enhanced: +=
Python
Adds += to Lua.
Submitted by
anonymous
-
3 years ago
2
Python regular expression to detect any type of group link and private channel in Telegram
Python
You can use this regular expression to identify any type of Telegram link. It doesn't matter whether it is t.me or telegram.me. Links including "joinchat" are also accepted.
Submitted by
Telegram : T.me/TinyPY
-
a year ago
(Last modified a year ago)
1
Regular expression to remove all puncutation
Python
Removes all of the puncutation present inlcuding \n,\t,\r
Submitted by
Abhinav Gupta
-
11 years ago
2
postgesql
Python
no description available
Submitted by
anonymous
-
9 years ago
2
Palabras en mayúscula que no están después de un punto
Python
no description available
Submitted by
anonymous
-
11 years ago
2
Parasite subtitles
Python
no description available
Submitted by
Andrey Spiridonov
-
11 years ago
2
python regex
Python
no description available
Submitted by
anonymous
-
10 years ago
2
Capture 5 words either side of a match string
Python
no description available
Submitted by
anonymous
-
10 years ago
2
Match 5 forward slashes
Python
Match 5 forward slashes
Submitted by
anonymous
-
10 years ago
2
IPv4 Validator
Python
no description available
Submitted by
dannyo
-
9 years ago
2
SED
Python
no description available
Submitted by
anonymous
-
9 years ago
2
match those lines whose first n chars contains 1+ non numeric
Python
1100582367|SDFDSFDSFDSFDSFDF GBC213WREW|RWEFSDFSDF 1100582377|DSFDSFDSFDSF 2NDG.S.D BIKADSFDSFDSFNO.421 1100582387|SDFSDFSDFDSF
Submitted by
sid
-
9 years ago
2
Port validator
Python
Validates port numbers from 1 to 65535
Submitted by
Agustín Bouillet
-
9 years ago
2
Find any digits in string
Python
no description available
Submitted by
anonymous
-
10 years ago
1
2
3
4
5
6
...
105
Community Library Entry
107
Regular Expression
ECMAScript (JavaScript)
/
^
[
\t
]
+
|
[
\t
]
+
$
/
gm
Open regex in editor
Description
Trim leading and trailing whitespace from a string.
Submitted by
fp
-
11 years ago
(Last modified 3 months ago)