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
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Greedy + & * quantifires debug
/[123]+(123)*2/ Input: 1,2,3,4,5,6,7,8,9,0,10,11,12,13,14,15,16 Find: 12
Submitted by
Tomer Levi
-
8 years ago
0
3 upvotes, 3 downvotes (50% like it) (You must be signed in to vote)
pcre
Find and replace strings with hypens
Find and replace string which contains hypens "-"
Submitted by
yuks
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
JSON FIELD EXTRACTOR
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
TNEW Strong Password - 8 character limit
restricts passwords to 8+ characters
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
test
AttributeConnID 45524524355
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
4shared
www.4shared.com
Submitted by
guru
-
8 years ago
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
1
...
592
593
594
595
596
597
598
...
629
Remove XML-Style Comments (JavaScript)
Vote
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
Regular Expression
javascript
/
<!--
[
\s\S
]
*
?
-->
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
Arkadiusz Sawicz
- 8 years ago