How To Use A Variable Inside A Regular Expression

How To Use A Variable Inside A Regular Expression