I'm using:
<ul class="ont-bd-phone">[\s\S]+<li>[\s\S]+T: ([^$]+?)[\s\S]+<\/li>[\s\S]+<\/ul>
to pick up 020 3514 0019
from:
<ul class="ont-bd-phone">
<li>
T: 020 3514 0019
</li>
</ul>
But the only match group being returned is '0' instead of the whole number. I'm not sure how to capture the end of the line outside of using $
. As a newcomer, how can I deal with HTML that has a lot of whitespace/newlines.
I'm using Rubular to check my work.