[Solved] Regex test for “number.number.number”


You’d probably want to create a regex as follows:

^\d+\.\d+\.\d+$

The ^ means “start of phrase”, the $ means “end of phrase”, \d+ says “digit one or more times in a row”, and \. means “.” but must be escaped with the leading \ due to . having a special meaning in regex.

0

solved Regex test for “number.number.number”