I have this code, and i'm wondering why it doesn't work.
Tried:
event_date = re.findall(pattern,area)
for i in event_date:
i.replace("<br>", " ")
print i
and
event_date = re.findall(pattern,area)
for i in event_date:
i.replace('<br>', ' ')
print i
and
y = "<br>"
event_date = re.findall(pattern,area)
for i in event_date:
event_date.index(y) and then using del...
and rstrip, translate, and re.sub ...
print event_date returns every entry like this
Tue, 10/28/14<br>05:30 PM
...
I want to remove the br tag and replace it with an empty space, but nothing seems to work. Advice?