Put the variable name in braces like this: /${var}_*/.
In reply to Re: Variable in regexp by jwkrahn in thread Variable in regexp by tamaguchi