substring - how to extract everything after \ in a string R -


so far i've tried...

sub("\.*", "", array_of_strings) sub(".*[\]", "", array_of_strings) 

i know that:

sub("\\\\.*", "", array_of_strings) 

removes every thing before backslash.


Comments