I want to split a string into an array containing all leading digits as one value and the rest of the string as the second value:
3px -> Array('3','px')
01b -> Array('01','b')
01 -> Array('01','')
b -> Array('','b')
1.5 -> Array('1','.5')
300,5 -> Array('300',',5')
a1 -> Array('','a1')
In PHP you could do something like:
$matches = array();
preg_match('/([0-9]+)([^0-9]+)/',$value,$matches);