Urgh, regular expressions

Izi

Izi

Soldato
Joined
9 Dec 2007
Posts
2,718
Anyone fancy helping me with some regex?

I need to match "1d 1h 1m"
Where the user could just enter 1m or 1h or 1d or a combination of the three.

The numbers can change for example 2d 5h 24m.

I hate regex.
 
Back
Top Bottom