How To Use Variable In A Regular Expression In Javascript Reactgo

How To Use Variable In A Regular Expression In Javascript Reactgo