Need to use Regex instead of parser to lift attributes from HMTL/XML page, but can't make the Regex <span class='street-address'> (?<Street>.*)
lift 2346 21st Ave NE
from the following text (spaced exactly like that), in Rubular.
<span class='street-address'>
2346 21st Ave NE
</span>
Also the Regex I have only works if I condense the text and there are spaces after the first HTML tag and before the last HTML tag. If I change the Regex to eliminate those spaces, then spaced HTML tags are skipped. I want to make the Regex as dynamic as possible.
How can I construct a Regex that works regardless whether there is a space or not after/before HTML tags or line breaks?