MacDownApp / macdown

Open source Markdown editor for macOS.
https://macdown.uranusjr.com/
9.45k stars 1.09k forks source link

Regex support for "Find" and "Find and Replace" #1123

Open maxpilotto opened 4 years ago

maxpilotto commented 4 years ago

Can we get full support for regexes in the "Find" searchbar? The available patterns are not enough and I think it would be better if we could input our own regex

jamesquilty commented 4 years ago

Commenting to support the inclusion of regular expression search–and-replace.

I currently have to copy text from MacDown to another editor (Alpha, FWIW), munging with a regexp and then copying the text back to MacDown. The constant switching is jarring and is certainly not a smooth workflow; I'd prefer all of my Markdown editing was completed in MacDown.

POSIX-compliant regexp syntax should be used, when/if this is implemented, for closest integration with macOS.

Edit to add: Alpha uses Tcl re_syntax which, I believe, is POSIX-compliant.