@feherke
I read Pushyr as saying (at marker 11 Feb 0645) that the universe of possible file names excluded any date separators. hence the substr solution.
I wholly agree that if there is an arbitrary separator to take account of then this must also be dealt with, most probably in a regex.
however the regex is complicated (not fatally so) by the new bit of information that immediately preceding the date pairs we can also have more digits.
So the modification of the problem posted at 11 Feb 10 5:40 is revoked ? Hmm... I understood that 11 Feb 10 6:45 is an addition to all previous. I think I am confused.
if it is an addition then preg_match is the way to go for sure. the pattern i posted above should work and is only a minor tweak to yours to deal with the variable prefixes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.