obsidian-inline-scripts icon indicating copy to clipboard operation
obsidian-inline-scripts copied to clipboard

Not able to make regex replacements

Open zanodor opened this issue 2 years ago • 0 comments

^(.+)$ -> $1 works. (But it's not good for anything.)

^(.+)$ -> [[\u$1|$1]] does not work.

In fact, if I nest $1 anywhere around square brackets, I'd need to use quotes but that would result in [[$1|$1]] (where $1 are literals).

Also, I couldn't figure out how to use lowercase/uppercase flags.

Intended use case:
Make alias with uppercase format first, pipe, lowercase in wikilinks: [[Alias|alias]].

Any ideas,

Cheers

P.S. First day trying out the plugin.

zanodor avatar Apr 12 '23 18:04 zanodor