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

[ad_1]

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

[ad_2]

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