Virtual Text needs to support some form of regexp substitution.
As an example....
I have a variable which is set to the directory of an executable, which can be 64-bits or 32-bits, like:
app-32
app-64
However, scripts for that application are common to both the 32 and 64 bit versions, so they are stored within a directory called app, instead of app-32/64.
Currently, I need to set up two variables manually for this. However, if some form of regexp substitution was available, I could just remove the -32/-64 from the name to set the other variable.