Regex for URL
filename from path includes whitespace names
Date to YYYY-MM-DD
slow chunk substr
remove whitespace
captures everything between the first ”(” and a semicolon (non-inclusive of the semicolon)
[\(]([^;]*)
specialized
group 1 = “OFF” (the expression between brackets, not including the brackets) group 2 = everything after the equal sign except for the comma
explanation:
(?:\[)
- matches but doesn’t capture an opening bracket
(".*.")
- matches and captures any sentence enclosed with quotes
(?:\]\s=\s)
- matches but doesn’t capture closing bracket, space, equal sign space
([\\(].*[\\)])
- matches and captures an opening parentheses, any number of characters and a closing set of brackets this will keep going until the last parentheses!!
(?:,)
- this matches the end of the string (the comma) without capturing, but it could also be a semicolon or an end of line this took me like an hour.
anchor tags <a *>*
doesn’t work on vscode but works on regexr
turn OneTab link to markdown
3 is the name
regexr.com/7kfdb
converts foxy tab all tab and titles to url to markdown
(.+)(\nhttp.+\n)
replace:
[$1]($2)