[Solved] JavaScript – Regular Expression that validates one +/- at begning and one decimal point [closed]
Basic regular expression /^[+-]\d+\.\d+$/ Explanation: ^ Match start of string [+-] Match either plus or minus \d+ Match one or more numbers of digits \. Match a period, the \ escapes it since it means any character \d+ Match one or more numbers of digits $ Match end of string 1 solved JavaScript – Regular … Read more