/(\d+\.?\*)(\s*m)/ If you have "22.000 m" in PERL you have $1="22.000" and $2="m"
sorry it was wrong: /(\d+\.?\d*)(\s*m)/ :-[