variable in RegEx



How to use a variable in RegEx? (like $abc in Perl)
Thank you

Henry .