We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
functionprocessData(input){//Enter your code hereconstpattern=/^(_|\.)[0-9]+([a-zA-Z]?)+(_)?$/g;// console.log(input.split('\n'));letinputArray=input.split('\n');for(leti=1;i<=inputArray[0];i++){if(inputArray[i].match(pattern)){console.log('VALID');}else{console.log('INVALID');}}}
Alien Username
You are viewing a single comment's thread. Return to all comments →
In Javascript