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,740 community submitted regex patterns...
-3
Working With Data regex sample text
PCRE2 (PHP >=7.3)
This is a sample text for use at my "Working With Data" workshop session on regular expressions.
Submitted by
anonymous
-
3 years ago
-2
Eide Chrysler New Goal
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
4 years ago
(Last modified 4 years ago)
-2
Url regex
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
4 years ago
-2
Exclude particular word in phrase
PCRE2 (PHP >=7.3)
this will exclude particular phrase from a line. means it will match only those line which dont have those word
Submitted by
anonymous
-
4 years ago
-2
LinuxOSVersion
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
4 years ago
-2
From conf table to hive table
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
4 years ago
-2
smargs
PCRE2 (PHP >=7.3)
smargs not margins
Submitted by
rkatz
-
4 years ago
-2
Conventional Commits commit regex
PCRE2 (PHP >=7.3)
https://www.conventionalcommits.org/en/v1.0.0/
Submitted by
Michael Collins
-
3 years ago
-1
trailing commas remover
PCRE2 (PHP >=7.3)
remove trailing commas on json
Submitted by
anonymous
-
3 years ago
-1
T
PCRE2 (PHP >=7.3)
T
Submitted by
me
-
3 years ago
-1
Mr Abdul Alim (m2a)
PCRE2 (PHP >=7.3)
Hi. My name is Mr. Abdul Alim (m2a) in Bangladesh from district. Sirajgonj contract number (+8801882650050 htttps://www.example.com my property
Submitted by
mr abdul alim talukder
-
3 years ago
-1
bl_regex_fees_types_2
PCRE2 (PHP >=7.3)
guif
Submitted by
guif
-
3 years ago
-1
Convert numbers-only YYYYMMDD date to dash delineated YYYY-MM-DD
PCRE2 (PHP >=7.3)
Convert numbers-only YYYYMMDD date to dash delineated YYYY-MM-DD
Submitted by
anonymous
-
3 years ago
-1
1
PCRE2 (PHP >=7.3)
1
Submitted by
anonymous
-
3 years ago
-1
213
PCRE2 (PHP >=7.3)
12312
Submitted by
anonymous
-
3 years ago
-1
slug numeric
PCRE2 (PHP >=7.3)
pattern to validate a slug with numbers
Submitted by
mestri.rodrigo
-
2 years ago
-1
is
PCRE2 (PHP >=7.3)
Hi it is me
Submitted by
anonymous
-
2 years ago
-1
Match Consonants
PCRE2 (PHP >=7.3)
Use regex to test whether a letter is a consonant or not. Use /[B-DF-HJ-NP-TV-Z]/ for capitals.
Submitted by
Matthew Hiebing
-
2 years ago
-1
Bluerose order-code
PCRE2 (PHP >=7.3)
order-code 20220623-19563352 20220623-18261367 20220606-15484894 20220606-15484 20220606...
Submitted by
anonymous
-
2 years ago
-1
IP6 Validator Address (Simple)
PCRE2 (PHP >=7.3)
Short form validation of an IP6 address Less complex than other examples I have seen around
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
1
2
3
...
137
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 2 months ago)