The friendly-regex provides useful regular expressions that are frequently used. (ex. email, phone-number, Resident registration number etc.)
npm i friendly-regex
// matchers
scriptTagMatcher(exString);
// tester
isScriptTag(exString);
// replacer
scriptTagReplacer(exString, replacerText);