rx_none_or_more {RVerbalExpressions} | R Documentation |
Match the previous stuff zero or many times.
Description
This function simply adds a * to the end of the expression.
Usage
rx_none_or_more(.data = NULL, mode = "greedy")
Arguments
.data |
Expression to append, typically pulled from the pipe |
mode |
Matching mode ( |
Examples
rx_none_or_more()
# create an expression
x <- rx() %>%
rx_find("a") %>%
rx_none_or_more()
# create input
input <- "aaa"
# extract match
regmatches(input, regexpr(x, input))
[Package RVerbalExpressions version 0.1.1 Index]