Note the optional matching of compression formats here.

extPattern

Format

An object of class character of length 1.

Examples

extPattern
#> [1] "\\.([a-zA-Z0-9]+)(\\.(bz2|gz|xz|zip))?$"