add convert_to_regex function to libericstools