in reply to Variable in regexp

Put the variable name in braces like this: /${var}_*/.