jeudi 18 mars 2021

How to combine and check whole string length in RegEx [duplicate]

I'm trying to write a Regex in which I want to check whether the input is a floating-point number with a length less than 40.

My RegEx:

^([0-9]+([.][0-9]+)){1,40}$

Can anyone tell me what is wrong with this?




Aucun commentaire:

Enregistrer un commentaire