According to ChatGPT: In that case, you would need to use the following regular expression: "[.,]+". This will remove all ".", "," and replace either "," or "." with the opposite to convert it to a float or double.