library(fs)
getwd() # In case this matters, although reprex creates
#> [1] "/private/var/folders/mk/lh99bg295msg8myvcf5yczkc0000gn/T/RtmpgFcnqm/reprex99941943cd46"
file_create("ps.xls") # its own temp directory.
file_create("cont.xls")
dir_ls(".", regexp = "p*xls") # I expect this to only return ps.xls
#> cont.xls ps.xls
Created on 2019-11-24 by the reprex package (v0.3.0)
I would expect this to return just ps.xls. How can regular expression "p*xls" match "cont.xls"?