Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.
Regular
Expressions
101
@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
What's new?
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
.NET
Sponsors
All your environment variables, in one place
Library entries
Search library
0
6 upvotes, 6 downvotes (50% like it) (You must be signed in to vote)
pcre
Fully Qualified Domain Name FQDN
Fully qualified domain name validation
Submitted by
ximbs
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
111
no description available
Submitted by
anonymous
-
8 years ago
0
2 upvotes, 2 downvotes (50% like it) (You must be signed in to vote)
pcre
Not Empty String
Match a not-empty string. A string with only spaces or no characters is an empty-string. When match something, mathc all the string with the exception of the eventually space at the and
Submitted by
Luca
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Beginning of word
When looking for day, Sunday should not be matched.
Submitted by
Ben
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Find array ending with comma
Useful for finding array error. Example: {'id':'1','name':'test',} Finds the ",}" from the example
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
replicated pageContent id within a div
no description available
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
c
no description available
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
(\s)(\d{9})(\s)</
no description available
Submitted by
anonymous
-
8 years ago
0
3 upvotes, 3 downvotes (50% like it) (You must be signed in to vote)
javascript
IBAN
Italian IBAN
Submitted by
Italo
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Remove / delete / strip style attribute from html tags
This one removes ALL attributes if "style" is found. See my other expression to only remove the style.
Submitted by
socialblogsitewebdesign.com
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
javascript
two matches with pipe
no description available
Submitted by
anonymous
-
8 years ago
0
2 upvotes, 2 downvotes (50% like it) (You must be signed in to vote)
javascript
date format regex for MM/dd/yyyy in javascript
no description available
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
javascript
token
replace token like [foo:bar:ba zz]
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Grep the daily purchase price for 250 g gold from http://www.scheidean
Grep the daily purchase price for 250 g gold from http://www.scheideanstalt.de/aktuelle-ankaufskurse/ankaufskurse-barren/: gold=$(wget -q -O- http://www.scheideanstalt.de/aktuelle-ankaufskurse/ankaufskurse-barren/ | grep "250 g" | sed -r 's/^.250 g]>([0-9]+)\.([0-9]+[0-9]+[0-9]+)\,([0-9]+[0-9]+).*$...
Submitted by
MH
-
8 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
Search for progressive download numbre
no description available
Submitted by
Antonio Malatesta
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
javascript
SharePoint File Name Vaidation
The file name validation algorithm from MS KB905231, I assumed the prohibited suffixes included the file extension. I.e. 'foo.doc.files' would not match but 'foo.files.doc' would.
Submitted by
David Nelson
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
parse mysqldump INSERT statement field values (handles unescaping)
This will parse the fields portion of a mysqldump lines such as: INSERT INTO users VALUES (42,'Bob',12.34,NULL,'It\'s ok!');
Submitted by
Steve Shreeve
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
URL validation with http/https
URL validation with http/https
Submitted by
Gunjan
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Key/Value pairs with multiline support
Key/Value pairs with multiline support
Submitted by
Alexander Krutov
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
A regex that tries to replace every instance in your site
For better exception capturing
Submitted by
anonymous
-
8 years ago
1
...
592
593
594
595
596
597
598
...
629
XenForo Add version Number to Footer
Vote
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
Regular Expression
pcre
/
\h
*
<xen:if
is="{
\$
debugMode}">
\h
*
<xen:if
hascontent="true">
\h
*
<dl
class="pairsInline
debugInfo"
.
*
?
>
(
\h
*
)
<xen:contentcheck>
/
Open regex in editor
Description
Loading markdown...
Submitted by
rugk
- 8 years ago