How to pass a variable into regex in jQuery/Javascript How to pass a variable into regex in jQuery/Javascript jquery jquery