Hi,
I have a string variable like $filename='XX-ZZ-YYYYMMDDHH'
All characters there are digits, apart from the minuses. I want to extract the numbers XX,ZZ,YYYY,MM,DD,HH (all 2 digits apart from YYYY that is four, i.e. they have fixed positions) and assign them to variables. How can i do that?
thanks, roberto