Fork me on GitHub
#emacs
<
2020-02-09
>
hkjels08:02:47

So, I have this regex that works when I use re-search-forward interactively, but not as a function in elisp. Any ideas as to why? The regex in question is: "^#\+include:\s-*\"\([^\"]+\)\"[^\n]*$"

hkjels08:02:51

So, I found that backslashes must be double-quoted, but it still fails

hkjels10:02:41

@sogaiu wow! I’m now realizing that regex in emacs is way more complex than I thought Thanks though. This probably explains why it fails. Just need to grasp it first 🙂

sogaiu10:02:27

good luck! i remember struggling with this, but all i remember is that it is tricky.