If your number is at the beginning of the string, you can use val(). You may want to use transform() first, to replace comma with point.
>Hi all
>
>I need to retrive from a string only the numeric characters, comma, and point
>like this,
>
>a="12,30asdfsdfs" i need a=12,30
>a="12.25rtrtrt11" i need a=12.25
>a="23,30 " i need a=24,30
>
>
>João Batista
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)