Here is an excerpt from the html I want to scan through.
<div class="text">
<h3>
<a href="http://www.faith.co.uk/">
Rodeo Sinclair
</a>
</h3>
And here is my ruby code.
@doc = open(url) { |f|
@doc = f.read
}
output = @doc.scan(/<h3><a href=(.*?)>/)
This does not work because of the new lines and spaces in the html file. Is there anyway I can get around this?