I have a txt file that contains more than a thousand lines, each line has a number that needs to be validated by a javascript script that I have ready.
I would like some script in php or javascript even read the file in txt, take line by line and validate with the other validation script that I have, and when validated, if the line fails in validation, excluded or at least marked with some special character, but I'd rather be removed anyway.
Note: I have Linux servers that would handle processing if the solution requires a lot of the machine.
Simple verification that would be used:
var numero = "55555555555"; // Aqui no caso seria puxado o arquivo em txt
if(numero.match(/55555555555/))
{ document.write("OK"); } else{
document.write("Nao Passou");}
Is there any way to do this?