In one of my older elisp code snippets, I was surprised to find the below (and that even worked fine all this time!)
The problem (which should have been) is that I did not escape the back-slashes in the regexp string: "\*abc\*"
(string-match-p "\*abc\*" "def*abc*")
So I then fixed the expression to below.
(string-match-p "\\*abc\\*" "def*abc*")
Both of the above expressions yield the same result.
Question: Why did the incorrect way work here?