I'm trying to pick out the name of some folders in a directory, and each have slightly variable names. The names of the folders are:
Right now the regular expression I'm using to pick out these folders is:
This picks out the first four folders successfully, but returns the last two as 'UD_epoch' & 'UD_Epoch.' How do I specify that I want the optional element to be included?