fix regexpr for script tag