Extract *all* possible patterns in a variable
I have a large variable containing strings (words). I need to extract all substrings that contain any of the patters listed in a separate vector.
r – extract *all* possible patterns in a variable
I have a large variable containing strings (words). I need to extract all substring that contain any of the patters listed in a separate vector.