2011-01-21, 21:33
Hi Guys,
I'm having a little trouble with the re.compile command.
The problem I have is where the data is spread over multiple lines, like:-
I've seen some people use
but I cant get that to produce a match. I also tried the triple speech marks, at the beginning and end, but still not working.
Anyone have any pointers?
I'm having a little trouble with the re.compile command.
The problem I have is where the data is spread over multiple lines, like:-
Code:
<a href="/Videourl"><img alt="2" src="Thumbnailurl" /></a>
</div>
</div>
</div>
<p><a href="videourl" title="VideoTitle"><strong>VideoTitle</strong></a><br />
I've seen some people use
Code:
match = re.compile(
'1st bit' +
'2nd bit'
).findall (html)
but I cant get that to produce a match. I also tried the triple speech marks, at the beginning and end, but still not working.
Anyone have any pointers?