string_insert_hrefs:
- use preg_replace_callback instead of the /e modifier with preg_replace (/e is deprecated in PHP 5.5)
- remove static variable definition
email_regex_simple: remove function, it is only used once