regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
Match segmented paths with '\' and '/' escaped by '\'
Published on Tue Mar 01 2022
Match segmented paths with '\' and '/' escaped by '\'
Regex
Test String
/./sub/sub2\//sub3\\/sub4\\\/
Additional matching regexes for
Match segmented paths with '\' and '/' escaped by '\'
Match segmented paths with '\' and '/' escaped by '\'
Match segmented paths with '\' and '/' escaped by '\'
Select all chars before last backslash
For selecting paths without filename
Quote Parsing
Parses quotes and can be escaped
Get inside single/double quotes
Get everything inside single/double quotes and ignoring escaped ones
Inside single quotes, escape aware
Allows the single quote to be escaped, handles the \\' situation
Non-parentheses characters, but allow escaped parentheses.
Trying to discover how to select all ranges except non-escaped parentheses.
Markdown link rewriting
A regular expression which finds all instances of markdown links and helps with rewriting link paths.
Match quoted strings, ignoring escaped quotes
Matches single or double quoted strings, and ignores backslash-escaped quotes within the string.
Absolute File Path Validation
Matches absolute file paths, such as C:\Users\username\Documents\filename.txt The path must contain a file and extension at the end
Telegram Markdown Escaping Backslashed asterisks
Telegram Markdown V2's bold (`*`) can be escaped by using `\*`. RegExp to validate it and get the actual contents inside.