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
Relevance
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 540 community submitted regex patterns...
0
Select string in between HTML tags
PCRE (PHP <7.3)
no description available
Submitted by
Jim Sheen
-
10 years ago
0
Custom HTML placeholder matcher
PCRE (PHP <7.3)
Grab all placeholder "tags" that are alphanumeric with optional underscores. In this example my placeholders are double curly braces e.g. {{MY_VARIABLE_NAME}}. Change out the braces for whichever symbol/character you are using or add/remove more. E.g. [[MY_VARIABLE_NAME]] would be matched with \[\...
Submitted by
John Cogan
-
10 years ago
0
parse author from html
ECMAScript (JavaScript)
no description available
Submitted by
imilov
-
10 years ago
0
remove empty html paragraph tags
PCRE (PHP <7.3)
no description available
Submitted by
acor3
-
10 years ago
0
url validation HTML5
ECMAScript (JavaScript)
This is validation that is used in html5 for validate the url. http://www.faqs.org/rfcs/rfc3987.html
Submitted by
Alex Matos
-
10 years ago
0
Matches only word without specific HTML tag around it.
PCRE (PHP <7.3)
This will match a word that is not wrapper by the a specified HTML element (with a class).
Submitted by
Johnny Ji
-
10 years ago
0
Split HTML string
ECMAScript (JavaScript)
Extracts HTML tags, HTML entities, alphanumeric words, and the rest.
Submitted by
Azmizar
-
10 years ago
0
Match HTML Tag Contents
PCRE (PHP <7.3)
Capture group one is the tag's name, capture group two is the tag's contents.
Submitted by
anonymous
-
10 years ago
0
Remove Dangerous HTML Tags
PCRE (PHP <7.3)
no description available
Submitted by
SG
-
10 years ago
0
HTML entities
PCRE (PHP <7.3)
Matches HTML entities like <
Submitted by
anonymous
-
10 years ago
0
Find all attributes and values of HTML tag
PCRE (PHP <7.3)
This regex will find all attributes, values, and the equal operator, as well as the white space between attributes. You can use this to extract all attributes to remove all inline styles.
Submitted by
Demetri Ojeda
-
10 years ago
0
Regex Fecha yyyy-MM-dd
ECMAScript (JavaScript)
valida fechas de 19## a 20##, en formato yyyy-MM-dd
Submitted by
http://www.regular-expressions.info/dates.html
-
10 years ago
0
fiter plain text from plain text + html content
ECMAScript (JavaScript)
It fiters plain text from plain text + html content, the input has the shape: "plain text html content" It keeps only the plain text at the beginning.
Submitted by
gugol
-
9 years ago
0
html tag name
ECMAScript (JavaScript)
no description available
Submitted by
dsikiritsky
-
9 years ago
0
Removes indexterm from html
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
My html tag regex
Python
My html tag regex
Submitted by
anonymous
-
4 years ago
0
Four-Digit Leap Years post-Y0 (AD/BCE) (Museum of Bad Data)
PCRE2 (PHP >=7.3)
This will match all four-digit years that are leap years, using the "either (multiple of four but not a multiple of 100) OR (multiple of 400)" rule. Explained / ^(...
Submitted by
Philip Flip Kromer
-
2 years ago
(Last modified a year ago)
-2
Finds HTML img tags
PCRE (PHP <7.3)
no description available
Submitted by
Matt Solum
-
12 years ago
-2
Validate credit card numbers
PCRE (PHP <7.3)
Visa, MasterCard, American Express, Diners Club, Discover, JCB
Submitted by
www.regular-expressions.info/creditcard.html
-
10 years ago
-1
HTML Code
PCRE (PHP <7.3)
HTML CODE given by (hex number   OR number   OR name )
Submitted by
novy
-
10 years ago
1
...
13
14
15
16
17
...
27