Closed nilsherzig closed 1 year ago
Looks like the python substitute generator uses $n to reference capture groups.
It generated this sub string for me: subst = "\"<a href=\"$2.md.html\">$2</a>\"" this string doesn't work in 3.10.7.
subst = "\"<a href=\"$2.md.html\">$2</a>\""
This works for me subst = r"\"<a href=\"\2.md.html\">\2</a>\"" using a raw string and \ instead of $
subst = r"\"<a href=\"\2.md.html\">\2</a>\""
@Genericreqd wdym?
The code generator doesn't translate the regex between flavors, you'll have to pick the correct flavor from the UI and adjust your regex accordingly first.
Bug Description
Looks like the python substitute generator uses $n to reference capture groups.
It generated this sub string for me:
subst = "\"<a href=\"$2.md.html\">$2</a>\""
this string doesn't work in 3.10.7.This works for me
subst = r"\"<a href=\"\2.md.html\">\2</a>\""
using a raw string and \ instead of $