I have an input file that contains javascript code that contains many identifiers of five shapes. I want to have these identifiers in a list, for example:
53231,53891,72829 etc.
This is my actual python file:
import re fobj = open("input.txt", "r") text = fobj.read() output = re.findall(r'[0-9][0-9][0-9][0-9][0-9]' ,text) outp = open("output.txt", "w")
How can I get these identifiers in the output file as I want?
thanks
source share