regular expression http in python
I have a long text and I would like to obtain all the entries in the text
that match the following pattern:
http******.id.txt, where * could be any entry (unknown length), and the
dots are actually dots in the text. I'd like to have a list with all the
entries that match such pattern.
One of the many tries was,
c = re.match(r'^(http)(.*)id.txt', b)
but it does not work, any suggestions?
Thanks!
No comments:
Post a Comment