Remove g option from regex