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...
-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
0
dpn_glossary HTML termparser
PCRE (PHP <7.3)
Regex of the TYPO3 Extension dpn_glossary. It ignores the children of the fetched content. http://bit.ly/dpn_glossary
Submitted by
Daniel Dorndorf
-
11 years ago
0
Match all attributes/values of html document
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
0
search h1 tag html
PCRE (PHP <7.3)
(.*?) example: Your best title
Submitted by
otharwa
-
11 years ago
0
Find CSS Class with ability to replace
ECMAScript (JavaScript)
Changing class names is hard with a large codebase written in multiple languages. Classes can appear in several constructs. This tries to match the various ways a class can be represented in HTML. Plug the RegEx in to Sublime Text 2 using "Find in Files...". When replacing in ST2, change $1 to \1.
Submitted by
Matthew (@sirlancelot)
-
11 years ago
0
Select id's in a HTML
PCRE (PHP <7.3)
This regexp was created to search all the id's in a HTML with the objective to clean the code and delete them.
Submitted by
Israel Sotomayor
-
11 years ago
0
Regular expression for extracting HTML tag attributes
Java 8
no description available
Submitted by
Amir Arian
-
11 years ago
(Last modified 2 years ago)
0
deviantart scrape search results
Python
Scrape DeviantArt's search page HTMl to extract the category, the id, the user and the image url of each post.
Submitted by
nelieru
-
11 years ago
0
select html paragraph tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
html tags with exclusions
PCRE (PHP <7.3)
Matches any text starts with ""; Tag exclusions described in first non-capturing group (can be removed); Tag name will be captured by group #1;
Submitted by
Pavel Savkin aka nhaizere
-
10 years ago
0
Select Topmost HTML Tags
PCRE (PHP <7.3)
no description available
Submitted by
Guilherme C. Souza
-
10 years ago
0
Get specific <span> tag
PCRE (PHP <7.3)
Get an specific html tag and return his content
Submitted by
Ivan Milazzotti
-
10 years ago
0
Remove / delete / strip style attribute from html tags
PCRE (PHP <7.3)
This one removes ALL attributes if "style" is found. See my other expression to only remove the style.
Submitted by
socialblogsitewebdesign.com
-
10 years ago
0
Machine readable passport number (second line)
ECMAScript (JavaScript)
Second line of the machine readable passport, based on the excellent article here - http://www.highprogrammer.com/alan/numbers/mrp.html
Submitted by
Leigh Garland
-
10 years ago
0
Get attributes values of html tags
PCRE (PHP <7.3)
Allow get the value of the some attributes from a html text
Submitted by
Marcelo Fuentes
-
10 years ago
0
Remove XML-Style Comments (JavaScript)
ECMAScript (JavaScript)
Exist a problem with simple regex in JS Solution from: https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9781449327453/ch09s10.html
Submitted by
Arkadiusz Sawicz
-
10 years ago
0
Match links in html
PCRE (PHP <7.3)
Matches all from
Submitted by
anonymous
-
10 years ago
0
html-link
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
html-link-2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
HTML Tag Filtering
PCRE (PHP <7.3)
no description available
Submitted by
Mohammed Yehia
-
10 years ago
1
...
11
12
13
14
15
...
27