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 18,020 community submitted regex patterns...
0
Picking DOB from middle if age is in same line 3rd way
PCRE2 (PHP >=7.3)
Picking DOB from middle if age is in same line 3rd way
Submitted by
anonymous
-
3 years ago
0
Picking DOB from middle if age is in same line 2nd way
PCRE2 (PHP >=7.3)
Picking DOB from middle if age is in same line 2nd way
Submitted by
anonymous
-
3 years ago
0
Picking 2nd 1st Line
PCRE2 (PHP >=7.3)
Picking 2nd 1st Line
Submitted by
Picking 2nd 1st Line
-
3 years ago
0
Picking 1st Line
PCRE2 (PHP >=7.3)
Picking 1st Line
Submitted by
Picking 1st Line
-
3 years ago
0
Picking 2nd Last Line
PCRE2 (PHP >=7.3)
Sample 1 James B. Lapointe 1481 Keyser Ridge Road Archdale, NC 27263 Appartment Keyser Ridge Road Archdale, NC 27263
Submitted by
anonymous
-
3 years ago
0
City State Zip
PCRE2 (PHP >=7.3)
City State Zip
Submitted by
anonymous
-
3 years ago
1
ticker but not EFS
PCRE2 (PHP >=7.3)
ticker but not EFS
Submitted by
anonymous
-
3 years ago
1
Array Expressions
PCRE2 (PHP >=7.3)
Array Expressions Expresiones validas de array para el atributos Value de los componentes tipo texto del editor grafico de VeriTran
Submitted by
Sebastian Ardila Agudelo
-
3 years ago
(Last modified 3 years ago)
0
parse domain from email
ECMAScript (JavaScript)
https://stackoverflow.com/a/48673903
Submitted by
Colby M. White
-
3 years ago
(Last modified 3 years ago)
0
Function parameter selection
Java 8
Allows to select multiple type of parameters for them to be handled differently. The regex can get strings ( "example string" ), variable name of boolean value ( name or true or false ) or integers and doubles ( 5 or 4.5 ). The variables names and boolean values have to be checked in the program u...
Submitted by
anonymous
-
3 years ago
0
soteshop price
ECMAScript (JavaScript)
aa
Submitted by
anonymous
-
3 years ago
0
New line characters on Windows, Linux and OSX
PCRE2 (PHP >=7.3)
New line characters on Windows, Linux and OSX
Submitted by
anonymous
-
3 years ago
0
id card
Java 8
打断点
Submitted by
anonymous
-
3 years ago
0
fdsf
Java 8
sdf
Submitted by
anonymous
-
3 years ago
0
RFC3454 Stringprep matcher (documentation parser)
PCRE2 (PHP >=7.3)
Matching expressions from lists of maps as samples: 0221 0234-024F 02AE-02AF 03AB; 03CB; Case map...
Submitted by
Marin Sagovac
-
3 years ago
0
Collection of sub routes with similar segments
ECMAScript (JavaScript)
asdf
Submitted by
anonymous
-
3 years ago
0
Neat URL
PCRE2 (PHP >=7.3)
Регулярка для очистки URL от мусора
Submitted by
anonymous
-
3 years ago
0
Edit xml blocks with exceptions with regex.
PCRE2 (PHP >=7.3)
Edit xml blocks with exceptions with regex.
Submitted by
Inc321
-
3 years ago
0
username or email?
PCRE2 (PHP >=7.3)
validate username or email
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Match phrase at end of line.
PCRE2 (PHP >=7.3)
Match phrase at end of line.
Submitted by
s1nglethr3ad
-
3 years ago
1
...
171
172
173
174
175
...
901
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)