Why isn't regex from the documentatinon not working? #1703
-
I'm trying to get a regex replace working in Obsidian, but while a non regex rule works:
But this regex rule I got from here: https://espanso.org/docs/matches/regex-triggers/, doesn't work.
|
Beta Was this translation helpful? Give feedback.
Answered by
gabbauer
Apr 24, 2024
Replies: 1 comment 5 replies
-
Can you try this?:
with Although the expansion in the docs works here (not tried in Obsidian) I find it more reliable to avoid surrounding them with quotes ("). Reddit posts over the years in r/espanso complain of problems with Obsidian. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the quick reply, but unfortunately I don't quite understand what it means. But I now know what the problem is. I just tried it again in this chat and it surprisingly worked (unlike Obsidian and Visual Studio Code (where I configure the .base file), where it still doesn't work). This gave me an idea that it could be because in both cases (Obsidian and VSC) both brackets are added simulataneously (so also the ")"). I have switched off this option in Obsidian and now it works there too (Since I don't use Brackets in the non-regex ones they also work the other way). In the long term, of course, it would be great if it also worked the other way. Any ideas for this?