Typescript String Match Regex Js Replace