0

I'm attempting to search a string for a certain sequence. I have not done anything with re, and it is... a bit confusing.

I'm looking for this string:
<div class="indexcenter"> (there's a portion of text here using newlines and characters) <!-- end indexcenter -->

I am thinking something alone these lines:
re.findall('<div class=\"indexcenter\">.+<!-- end indexcenter -->',html)

suggestions?

1
Contributor
1
Reply
2
Views
9 Years
Discussion Span
Last Post by poeticinsanity
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.