A non-negative integer. Minimum number of repeats, when grouped.
hi
positive integer. Maximum number of repeats, when grouped.
char_class
A logical value. Should x be wrapped in a character
class? If NA, the function guesses whether that's a good idea.
Value
A character vector representing part or all of a regular expression.
Note
R has many built-in locale-dependent character classes, like
[:alnum:] (representing lower or upper case letters or numbers).
There are also some generic character classes like w (representing
lower or upper case letters or numbers or underscores).
Finally, there are ASCII-only ways of specifying letters like a-zA-Z.
Which version you want depends upon how you want to deal with international
characters, and the vagaries of the underlying regular expression engine.
I suggest reading the regex help page and doing lots of
testing.