User1588000814 posted
Hello
I need to search a large amount of text for specific patterns and extract the string within that certain pattern.
For example, say I have a line of HTML text and I want to extract the name and email within the text:
<td align="left"><span class="p">Smith, John<br />
<a href="mailto:john.smith@hotmail.co.uk">john.smith@hotmail.co.uk</a>
</td>
I know how to split a string using one character but I need to set the
start and end point for the split to work with e.g. for the name, start the split point at "<span class="p">" but end at the "<br/> so as to leave the remainder as "Smith, John"
Anyone have any ideas?
Thanks in advance
Cheers