I want to populate markdown block quotes inside $Text to a specific attribute $Qotd
The block quotes are in a regular format (and the quotation marks are in the text):
> "This is a quote."
The following code works as expected:
"This is a quote." (i.e. it includes the original quotation marks.)
But if I try to remove the quotation marks in the output by escaping them in the pattern with:
then the search still works, but the back reference doesn’t and I get
The real code traps for failure, so I know the escape syntax is correct and the pattern is being found: it’s the back reference which doesn’t work.
I know I could simply post-process $Qotd to strip the first and last character, but I’m interested to know:
Have I got the syntax wrong, or do " simply not work with back references?