I need to replace everything that is not a number and allow only the first , or ..
final string = _lengthController.text?.replaceAll(RegExp('[^0-9,.]'), '')
This is what I got so far and its working fine but will allow , . more than once.
So how can I replace every , and . after the first one, not one of each but only one in total is allowed.