Last post Oct 11, 2012 08:49 AM by geezer
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
Oct 09, 2012 08:56 AM|Dr. Acula|LINK
I would use regular expressions to get the data you need, something like
should do the trick,
Oct 11, 2012 08:49 AM|geezer|LINK
Thanks for your help