[Solved] i want to matche some substring in my vector with regular expressions with R language [closed]


Using stringr and tidyr:

data.frame(column_1 = str_extract(v, "(?<=\\s\\()[^\\s]*?(?=\\),)"),
           column_2 = replace_na(str_extract(v, "(?<=transcript\\svariant\\s)\\d"), 1))

4

solved i want to matche some substring in my vector with regular expressions with R language [closed]