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,040 community submitted regex patterns...
1
Get Content within brackets
PCRE (PHP <7.3)
Get Content within brackets
Submitted by
anonymous
-
9 years ago
3
Match a URL from a text message
ECMAScript (JavaScript)
I use this to match the first url present in a text message.
Submitted by
anonymous
-
9 years ago
1
URL supporting ports, GET params and js routing
PCRE (PHP <7.3)
(http(s)?:\/\/) // http:// or https:// (([a-zA-Z0-9_\-])+(\.([a-zA-Z0-9_\-])+)+(:[1-9]+[0]*)?)(\/?| // basic url f.e. www.wp.pl with obligatory / at end ...
Submitted by
Rafał Rowiński
-
9 years ago
0
http
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Match a string that is equal to a string before a '='
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
-2
Match the first and last char of a word
PCRE (PHP <7.3)
no description available
Submitted by
pedroppinheiro
-
9 years ago
-2
Numbers separated by comma and whitespace
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
-2
Match XML that has a single root element
PCRE (PHP <7.3)
Can be used as a basic validator to ensure that XML has only a single root element
Submitted by
Jerome Wilson
-
9 years ago
1
Regex for matching assignments
ECMAScript (JavaScript)
Match the java assignments and get the assigned value
Submitted by
mohamedrias
-
9 years ago
1
extract video id from youtube url
PCRE (PHP <7.3)
no description available
Submitted by
egg-
-
9 years ago
1
jsDoc Parameter Splitter
ECMAScript (JavaScript)
Finds parameters in jsDocs (parameters are sections of information starting with @ and only appear in a block after free floating text
Submitted by
anonymous
-
9 years ago
1
regex to get N words from a line
ECMAScript (JavaScript)
usefull if you want to return (N) words instead of (N) chars
Submitted by
Pavel Dominguez
-
9 years ago
2
Grab all hyperlinks
PCRE (PHP <7.3)
no description available
Submitted by
Josh Bourke
-
9 years ago
1
youku video_id
PCRE (PHP <7.3)
parse youku video id
Submitted by
egg-
-
9 years ago
1
youku
PCRE (PHP <7.3)
parse youku video id
Submitted by
egg-
-
9 years ago
6
search word with an accent
ECMAScript (JavaScript)
search any word with an accent
Submitted by
Thegner Pierre
-
9 years ago
1
Cordon - SFR - HDD Serial number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Windows Registry Binary(Hex)
PCRE (PHP <7.3)
Get value of windows registry on hex format
Submitted by
Respeto
-
9 years ago
0
Not the Monster
PCRE (PHP <7.3)
no description available
Submitted by
Sif Baksh
-
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
1
...
820
821
822
823
824
...
902
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
(
<
\?
=
)
.
+
(
\?\>
)
/
Open regex in editor
Description
Find instances of <?=$some_variable?> Usefult to replace with <?php echo $some_variable ?>
Submitted by
JayCee
-
9 years ago