PCRE: Are there pearl-style back-references in RegEx-Search?

PCRE: Are there pearl-style back-references in RegEx-Search?

von Cee Kay -
Anzahl Antworten: 0
I was using the RegEx search and replace functions to convert quizzes into Moodle's "Cloze"-format. I came across a format where the solutions are already stored in a syntax like

Finding a #solution~1* is difficult.

Now it would be nice to have search and replace that keeps the correct solution via back reference like in

Find:
\#(.+?)\~(\d+?)\*
Replace:
{1:SHORTANSWER:=\1}

I tried that one of course, with no success. For this purpose, is there an alternative syntax that I'm not aware of or is it simply not possible?

Thanks in advance.