Identify shared leading or trailing character strings
Identify shared leading or trailing character strings
For a vector of character strings, identify elements between shared leading and/or trailing substrings, e.g. for a vector such as c("XXX01YYY",XXX02YYY") extract the numbers.
extract_differences_between_characters(strings)
Arguments
strings: vector of character strings for elements to be extracted from.
Returns
vector of strings similar to the input vector but without shared leading and trailing characters.