How to check if a string has 3 or more decimal points using regex. I only am wanting to use a regex pattern to solve this issue.
var string1 = "1.23432 12.123.1231"; // true
var string2 = "1.23432 12123.1231"; // false
What I thought would work but doesn't:
let regx2 = RegExp(/.{3,}/g);
if(regx2.test(string1)){
output = false;
}
Any help would be much appreciated.