Menu
Hi,
I’ve beating my head against a wall all day.
Been trying to create a function to retrieve the number of files from a directory that match a pattern. I though it was fairly simple…. ?
PATTERN
“images/02-??23-1234-0?.jpg”
?? can be any of 01,05,28,18,66
? can be 1 to 5
GLOB won’t do, I’ve tried REGEX, but didn’t seem to work. Also tried open-dir(), but by then my head was about to explode.
Anyone please….
Thanks,
Barton.