[After a few hours of testing]: Yes, there is!
Instead of a RegexReplace, a Replace command can do the same.... with some creativity:
RegexpReplace "^.*" "#"
Replace "#" "%_var0%"
This works. I used "#", but any suitable uncommon character will suffice.