I want to retrieval number of length, such as 12m, 12 m, 3,2 meters but don't get the value of areas 3m2 or 3m3 .... I use the regular expression to get value. This is my regular expression but it's not run. :(
([0-9]+[,.]*[0-9]*\s*(mét|m|cm|dm|mm|km|hm|dam|centimet)+(^[0-9]+))*
Other approach (every test passing):