stri_any_regex | R Documentation |
Does any string have a regex
stri_any_regex(str, pattern)
str |
string vector |
pattern |
string |
TRUE or FALSE
str <- c('s1 Spectral Count', 's1 Unique Spectral Count')
patterns <- c('Spectral Count', '(?<!Unique) Spectral Count', 'Intensity')
stringi::stri_detect_regex(str, pattern = patterns[1])
stringi::stri_detect_regex(str, pattern = patterns[2])
stringi::stri_detect_regex(str, pattern = patterns[3])
stri_any_regex( str, pattern = patterns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.