d {assertive.strings} | R Documentation |
Creates a regex string for repeated digits.
d(lo, hi = NA_integer_, optional = FALSE)
lo |
Minimum number of digits to match. |
hi |
Optional maximum number of digits to match. |
optional |
If |
A character vector of regexes.
If hi
is omitted, the returned regex will only match the exact
number of digits given by lo
.
## Not run: d(1:5) d(1:5, 6:8) d(0:2, Inf) ## End(Not run)