DETECT USING REGEX

Made by: Rhaze
 avatar
unknown
javascript
2 years ago
275 B
5
Indexable
splitData = data.split(" ");
for (let i=0; i < splitData.length; i++){
    var toVerify = splitData[i];
    if (toVerify.length > 14 && toVerify.length < 20){
        if (toVerify.match(/[a-z]/) && toVerify.match(/[0-9]/)){
            console.log(toVerify)
        }
    }
}
Editor is loading...