r1631 + borrow string_insert_hrefs() and function email_regex_simple() from Mantis