Matches any single character except for a newline (the regex dot).

xp_build_any(pattern = NULL)

Arguments

pattern

(Optional) An existing pattern from a pipe.

Value

A regexpert object.

Examples

# Match anything between two brackets
xp_build_literal("[") %>% xp_build_any() %>% xp_op_repeat(0, Inf) %>% xp_build_literal("]")
#> <regexpert pattern>
#>   (?:[.)*]