I have a set of complex identifiers that are the column names of a dataframe. This regular expression matches all of them :
regex <- "^PLUTO-.{2}-.{4}-01.{1}-.{3}-.{4}-.{2}$"
Now I would like to generate random identifiers using this regex to get something like this :
"PLUTO-xx-xxxx-01x-xxx-xxxx-xx"
"PLUTO-xx-xxxx-01x-xxx-xxxx-xx"
...
Where x's are random characters.
Is there a function that does such things in R? I found such topics for java and python but nothing in R (only paste() and collapse() solutions).