Get common and unique text in question based on regex pattern identification.

split_common_unique(x, ptn = NULL)

Arguments

x

A character vector

ptn

A regex() pattern that defines how the string should be split into common and unique elements

See also