ez.regexpi | R Documentation |
find with regular expression (case insensitive)
ez.regexpi(s, pat, ignorecase = TRUE, once = FALSE, split = FALSE)
s |
string |
pat |
regular expression pattern |
once |
match once or many times |
split |
split or not (see below) |
returns a list ($start, $end, $match, $split)
$start and $end as numeric vectors indicating the start and end positions of the matches.
$match contains each exact match
$split contains the character vector of splitted strings (split by the matched pattern, ie, the rest that do not match).
If no match is found and split=FALSE, all components will be NULL
If no match is found and split=TRUE, all components will be NULL except that split will contain the whole string
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.