The [\d] one didn't seem to work as i thought. (All non-numeric characters)
It doesn't make. (period) a delimter for some reason? Is that cuz its also a decimal point?
ANyway, i have binned the preg_split thing and i am using ereg_replace instead and doing it another way but i still need a string pattern that will strip out all non numeric charcters.
Basically, i am taking a field from a form where a TIME will have been typed. Because some people use
colons> 9:45
periods> 10.52
and even hyphens> 12-21 (dumbasses)
i need a pattern that will swap anything other than a number, to a colon.. 🙂