You are viewing a single comment's thread. Return to all comments →
TypeScript or JavaScript
function main() { const regex = /^[_\.][0-9]+[a-zA-Z]*_?$/; for (let i = 1; i < inputLines.length; i++) { const str = inputLines[i]; if (regex.test(str)) { console.info('VALID'); } else { console.info('INVALID'); } } }
Seems like cookies are disabled on this browser, please enable them to open this website
Alien Username
You are viewing a single comment's thread. Return to all comments →
TypeScript or JavaScript