I wonder how to remove a “question mark char” from string like that:
8�901.9631
I’d like to use regex. I’m trying with this regex:
#(\d+).(\d+(?:\.\d{1,4})?)#
But it doesn’t work.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you know all other characters are numbers and periods, you could do this:
Basically this is removing everything that is not (
[^ ]) a number (\d) or a period (\.).