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
Community Patterns
Search among 15,480 community submitted regex patterns...
0
Release and master branches
PCRE2 (PHP >=7.3)
refs/heads/release/1.0.1 refs/heads/master master release/1.0.1
Submitted by
AbdElraouf Sabri
-
2 years ago
(Last modified 2 years ago)
0
Grab CalVer from git tags
PCRE2 (PHP >=7.3)
When using git ls-remote --tags --sort=version:refname, the results display the git hash as well as a refs prefix. This regex grabs only the CalVer string.
Submitted by
John Obla
-
2 years ago
0
sdsds@needemand.com
PCRE2 (PHP >=7.3)
sdsds@needemand.com
Submitted by
anonymous
-
2 years ago
0
passw125
PCRE2 (PHP >=7.3)
^(?=.\d)(?=.\W)(?=.*[a-zA-Z]).{6,8}$
Submitted by
AS
-
2 years ago
0
regex html tag
PCRE2 (PHP >=7.3)
$subject = 'asdasdsdsa'; $pattern = '^(.+)?';
Submitted by
anonymous
-
2 years ago
0
Start and Ends with same Letter
Java 8
regex for a string that starts and ends with the same letter
Submitted by
anonymous
-
2 years ago
0
Date FR
PCRE2 (PHP >=7.3)
Date FR
Submitted by
anonymous
-
2 years ago
(Last modified 10 months ago)
0
Date EN
PCRE2 (PHP >=7.3)
Date EN
Submitted by
anonymous
-
2 years ago
(Last modified 10 months ago)
0
Myliberary
PCRE2 (PHP >=7.3)
Page to be the first place of African and the horns and knowledge of the first place of ethiopia What time mashilla first place on mobile devices At one
Submitted by
anonymous
-
2 years ago
0
Initial Ceros and Grouping Characters
PCRE2 (PHP >=7.3)
remove what title says
Submitted by
anonymous
-
2 years ago
0
Regex EKS Logs
PCRE2 (PHP >=7.3)
This Just For Test
Submitted by
JuniYadi
-
2 years ago
0
BSDS regex example 1
PCRE2 (PHP >=7.3)
Part of a training course
Submitted by
Coppelia
-
2 years ago
0
grade pattern
Java 8
grade pattern for chinese school grade
Submitted by
anonymous
-
2 years ago
0
Remove domains in email addresses after @
PCRE2 (PHP >=7.3)
Remove domains in email addresses after @
Submitted by
anonymous
-
2 years ago
0
Validation code FETLOCK pt-br
ECMAScript (JavaScript)
Validação de código de barras boleto padrão "FEBRABAN - Federação Brasileira de Bancos".
Submitted by
Rafaella Cintra
-
2 years ago
(Last modified 6 months ago)
0
Mask to FETLOCK pt-br
ECMAScript (JavaScript)
Mask to fetlock pt-br. 00000.00000 00000.000000 00000.000000 0 00000000000000
Submitted by
Rafaella Cintra
-
2 years ago
(Last modified 2 years ago)
0
Mask currency default
ECMAScript (JavaScript)
mask currency default
Submitted by
Rafaella Cintra
-
2 years ago
0
Mt940-61
Java 8
Parse tag 61 of an mt940 statement
Submitted by
anonymous
-
2 years ago
0
JavaScript Array
PCRE2 (PHP >=7.3)
Matches items in a JavaScript Array
Submitted by
me
-
2 years ago
0
Word Match
PCRE2 (PHP >=7.3)
Matches Word
Submitted by
cool66
-
2 years ago
1
...
729
730
731
732
733
...
774
ECMAScript/JavaScript trim
106
Regular Expression
ECMAScript (JavaScript)
/
^
[
\s
]
*
(
.
*
?
)
[
\s
]
*
$
/
Open regex in editor
Description
Trim leading and trailing whitespace from a string.
Submitted by
fp
-
11 years ago
(Last modified 12 days ago)