cache string_length
implement abr_regex_s(char *s)