R: Wildcards

wildcards {rex} | R Documentation

## Wildcards

### Description

Wildcards

### Usage

    zero_or_more(..., type = c("greedy", "lazy", "possessive"))

    one_or_more(..., type = c("greedy", "lazy", "possessive"))

    maybe(..., type = c("greedy", "lazy", "possessive"))

### Arguments

`...` | `shortcuts`, R variables, text, or other rex functions.
`type` | the type of match to perform. There are three match types `greedy`: match the longest string. This is the default matching type. `lazy`: match the shortest string. This matches the shortest string from the same anchor point, not necessarily the shortest global string. `possessive`: match and don't allow backtracking

### Functions

- `zero_or_more`: match `...` zero or more times.

- `one_or_more`: match `...` one or more times.

- `maybe`: match `...` zero or one times.

### See Also

Other rex: `%or%`, `capture`, `character_class`, `counts`, `group`, `lookarounds`, `not`, `rex`, `shortcuts`

[Package rex version 1.1.2 Index]