Hi guys, I am a complete newbie (but learning slowly). I am trying to make a script to check for proxies that are contained in a file using a regex.
Fact is that I lack of knowledge and I do not know how to make it go. This is my lame approach.
#this opens the file containing a list of proxy address in a txt file
fob=open('C:\Documents and Settings\Desktop\file.txt','r')
listme=fob.readlines()
##need to check for strings that are really proxy addresses using #this regex
import re
[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\:[0-9]{1,5}
#writes the matched proxies into a new filename
fob=open('C:\Documents and Settings\Desktop\file2.txt','w')
fob.writelines()
fob=close()
Best Regards and many thanks