Oct 09, 2012 07:04 AM|geezer|LINK
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 />
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