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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…