I am using regular expression /[\-]?\d+(?:\.\d+)?/ . But i am getting output as 1000. How to get the negative sign?
Thank you in advance
Str_replace(input, "$ ", "")
Tip : https://regexr.com/ Playground for trying regular expression
Обсуждают сегодня