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...
2
replace only inner text without tag element
PCRE (PHP <7.3)
no description available
Submitted by
A.K. Asik
-
10 years ago
2
IPv4
PCRE (PHP <7.3)
no description available
Submitted by
Jorge C.
-
10 years ago
2
Currency Amount
PCRE (PHP <7.3)
Format: x0.00 Valid: 13.37 4.20 1.00...
Submitted by
anonymous
-
10 years ago
2
Capture 5 words either side of a match string
Python
no description available
Submitted by
anonymous
-
10 years ago
2
vk.com wall
PCRE (PHP <7.3)
Parse 123_123 http://vk.com/id82702078?w=wall82702078_3386 http://vk.com/wall82702078_3386 http://vk.com/club34073863?w=wall-34073863_28647 http://vk.com/wall-34073863_28647
Submitted by
by xzotix
-
10 years ago
2
facebook post embed code
PCRE (PHP <7.3)
This pattern matches to the facebook post embed codes. It matches on each parts of the whole embed code individualy, and matches on the complete embed code either, but it requires minimum a fb-post div.
Submitted by
kristian tanacs
-
10 years ago
2
Any number between 0 and 10 with 0 or 1 decimal places
PCRE (PHP <7.3)
Matches any number between 0 and 10 (inclusive) with 0 or 1 decimal places. Note that .5 will NOT be matched but 0.5 will. Also 10.X will not be matched, but 10 will.
Submitted by
Matt Coubrough
-
10 years ago
2
PO Box Address Validation
PCRE (PHP <7.3)
no description available
Submitted by
mrferos
-
10 years ago
2
price float pattern
ECMAScript (JavaScript)
Checks that value is float format and has two digits at max
Submitted by
@jprajani
-
10 years ago
2
Extract Fields from Mailexpire
PCRE (PHP <7.3)
Given the HTML of an alias's control panel, apply the XPath "//span[@class='maintext']". The second result returned can be parsed by this regex to yield the most pertinent field names and their values.
Submitted by
Crumeniferus
-
10 years ago
2
Route Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2
#Set-Cookie:\\s+(?<cookie>[^=]+=[^;]+)#m regex explanation
PCRE (PHP <7.3)
no description available
Submitted by
Igor
-
10 years ago
2
Extract Metadata
PCRE (PHP <7.3)
no description available
Submitted by
kai_desu
-
10 years ago
2
Array formatting (serialized)
PCRE (PHP <7.3)
Check for correctly formatted array of this type: array( array('name'=>'War and Peace', 'year'=>1865), array('name'=>'Different Seasons', 'year'=>1982), )
Submitted by
oneperfectsunrise
-
10 years ago
2
Currency amount without currency symbol
PCRE (PHP <7.3)
Matches numbers that are likely to by financial amount. Does not consider the type of currency.
Submitted by
elgehelge
-
10 years ago
2
html font to bbcode
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2
Matches first word
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2
paren strip test
PCRE (PHP <7.3)
paren strip test
Submitted by
marie bacuno
-
10 years ago
2
strip parentheses enclosed text with no keywords
PCRE (PHP <7.3)
strip parentheses enclosed text with no keywords - handles nested parentheses - if using brackets/braces normalize string to parentheses then use the regex
Submitted by
marie bacuno
-
10 years ago
2
Get video parameters from many video services at once
ECMAScript (JavaScript)
supported youtube, vimeo, face liveleak, break, ebaums, facebook support url and iframes
Submitted by
Misthero
-
10 years ago
1
...
858
859
860
861
862
...
901
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
\s
*
<parent>
\n\s
*
<groupId>com
\.
ps
\.
consul
\.
releng<
\/
groupId>
\n\s
*
<artifactId>com
\.
ps
\.
consul
\.
releng<
\/
artifactId>
\n\s
*
<version>1
\.
0
\.
0-SNAPSHOT<
\/
version>
\n\s
*
<relativePath>
\.\.\/
com
\.
ps
\.
consul
\.
releng<
\/
relativePath>
\n\s
*
<
\/
parent>
/
Open regex in editor
Description
no description available
Submitted by
anonymous
-
9 years ago