regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
include case
Published on Tue Mar 01 2022
How to include the matched cases in the result?
Regex
Test String
<FilesMatch "test"> Order deny,allow deny from all allow from 111.111.111.111 </FilesMatch> <FilesMatch "nottest"> Order deny,allow deny from all allow from 222.222.222.222 </FilesMatch>
Additional matching regexes for
include case
include case
How to include the matched cases in the result?
Name Initials
Matches 2 or 3 initials from a name. If there is a "," and suffix like Jr., it does not include that in the result.
Email address (most used)
Email address, most used cases
Franklin Regex
Testing Franklin related regex matching cases.
Guid (with or without dashes)
Matches a guid string that can optionally include dashes.
Grab double or single quoted text, escape aware
^$ are only added for the test cases, handles escapes and the closing \\" situation
Any number between 0 and 10 with 0 or 1 decimal places
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.
match valid JSON
Matches any valid JSON object, matches recursively. Passes all JSON test cases I found.
Regex to match any JSON value with fewer steps possible
If you find... - any JSON value that should be matched but isn't, - any JSON value that should NOT be matched but is - or simply a way to match the values with fewer steps... please, let me know.
Domain from URL
Matches everything before after // or www and before a period. If needed, replace the matched elements with blanks.