Regexp-based implementation of _remove_nonclickprint_text()