
Check if a String is a Substring
is_substring.RdThis function checks if a string is a substring of another.
Details
Unlike grepl() or stringr::str_detect(), is robust to invalid regular
expressions. For instance, stringr::str_detect("abcd\[", "abcd\[ef") or
stringr::str_detect("abcd]", "abcd]ef") failed to identify that the
substrings.