Use non-capturing group when trying to match script and style tags in toString().