Fixed a bug with replace-vars and multiple vars in the same node

The regex was a little too loose, so it was capturing everything from the beginning of the first var and the end of the last as if it was one var.