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,840 community submitted regex patterns...
2
extract twitter username from url
ECMAScript (JavaScript)
Adopted one of answers from: http://stackoverflow.com/questions/5948051/regex-extract-twitterusername-from-url
Submitted by
anonymous
-
9 years ago
2
CSS URL parser tilde only
ECMAScript (JavaScript)
Find any url('~filename.jpg'). URL must contain tilde
Submitted by
@adjavaherian
-
9 years ago
2
Unicode username
ECMAScript (JavaScript)
Unicode user name check with som allowed non-alhanum characters
Submitted by
Martin Bucko
-
9 years ago
2
Portuguese phone numbers
ECMAScript (JavaScript)
Matches Portuguese phone numbers.
Submitted by
github.com/luis140219
-
9 years ago
2
IPv4 Validator
Python
no description available
Submitted by
dannyo
-
9 years ago
2
Date between 1950 and 2050
ECMAScript (JavaScript)
Date in format MM-dd-yyyy
Submitted by
Daniel Quijada
-
9 years ago
2
SED
Python
no description available
Submitted by
anonymous
-
9 years ago
2
replace any character with more than two occurrence
ECMAScript (JavaScript)
no description available
Submitted by
papky
-
9 years ago
2
word before :
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2
fffs
ECMAScript (JavaScript)
dfsfd
Submitted by
anonymous
-
8 years ago
2
US datetime
ECMAScript (JavaScript)
Validates a US mm-dd-yy(yy) with an optional hh:mm:ss time.
Submitted by
anonymous
-
8 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
-
8 years ago
2
Port validator
Python
Validates port numbers from 1 to 65535
Submitted by
AgustÃn Bouillet
-
8 years ago
2
Regex tutorial
Java 8
Case insensitive match the whole word betwween \bword\b
Submitted by
anonymous
-
4 years ago
(Last modified a year ago)
2
Regex for real number
ECMAScript (JavaScript)
this regex can detect any real number whether it is signed or unsigned.plus it can detect real number both with and without floating point aka '.'.the numbers should be decimal number
Submitted by
Adnan nabib
-
3 years ago
2
CSS Colors: RGB(A), HSL(A), HEX(3,4,6,8), var(--tw-color), etc...
ECMAScript (JavaScript)
Versatile, multiline matching of CSS colors of many common formats, including: [x] HEX-3: #123 (equivalent to #112233) [x] HEX-4: #FA0F ( ... #FFAA00FF) [x] HEX-6: #FF3300 ( ...#F30) [x] HEX-8: #FFAA00FF ( ...#FA0F)...
Submitted by
Nicholas Berlette (@nberlette)
-
3 years ago
2
Mime type parser
.NET 7.0 (C#)
A "simple" regex to parse mime types. Handles all commonly occurring parts of a mime type string such as: Type Subtype Subtype's with an extra extension (e.g. svg+xml) (Optional input) Multiple parameters (Optional input)...
Submitted by
Vespion
-
a year ago
(Last modified a year ago)
2
URI Parser
ECMAScript (JavaScript)
A simple parser to exact all the components of a URI/URL as named groups
Submitted by
Vespion
-
a year ago
(Last modified a year ago)
2
JavaScript trim string
ECMAScript (JavaScript)
Trim leading/trailing space on a string: do not use /gm flags. Trim each line of a multiline string: use the /gm flag.
Submitted by
https://github.com/naomik
-
10 years ago
2
haml attribute parsing
ECMAScript (JavaScript)
no description available
Submitted by
OnlineCop
-
10 years ago
1
...
15
16
17
18
19
...
292
Matching build file names
1
Regular Expression
Java 8
"
^
(?<type>
(?:
ci-
|
cloud-
)?
[^
-
]
+
)
[
_-
]
(?<version>
\d
+
\.
\d
+
\.
\d
+
)
(?<alpha>
[
-+
]
alpha
)?
(?:
-
(?<date>
\d
{8}
)
)?
[
-+
]
(?:
(?<build>
\d
+
)
.
(?<builddate>
\d
{8}
)
)?
(?:
[
.-
]
?
(?<sha>
[
A
-
Fa
-
f0
-
9
]
+
(?:
[
.-
]
\d
+
)?
)
)?
(?:
\.
(?<arch>
.
+
)
)?
\.
(?<fmt>
.
{3}
)
"
gm
Open regex in editor
Description
Matches various versions of build file filenames from our jenkins builds
Submitted by
Sean Furrh
-
2 years ago