regex(x, ...)regex(x) <- value
regex
- Returns a list of regexes.
regex
- Get the regex
chunks from a regexr
object.
regex<-
- Set the regex
chunk(s) of a regexr
object.
minimal <- construct("a", "b", "c") minimal[1] "abc"regex(minimal)[[1]] [1] "a" [[2]] [1] "b" [[3]] [1] "c"regex(minimal)[2] <- "\\s+[A-Z]|[0-9]" regex(minimal)[[1]] [1] "a" [[2]] [1] "\\s+[A-Z]|[0-9]" [[3]] [1] "c"