04-07-2004
14,
0
Join Date: Feb 2004
Last Activity: 1 December 2004, 8:24 AM EST
Posts: 14
Thanks Given: 0
Thanked 0 Times in 0 Posts
Complext test extraction
Hi All,
Got a bit of a complex grep/awk statement here.
Trying to write a statement which finds the following text in an unstructured HTML file: eg
original file snip:
<form style="margin-top: 0px; margin-bottom: 0px;" name="ladder">
<select class="formtext" size="1" onchange="jumper(document.ladder.lst.options[document.ladder.lst.selectedIndex].value)" name="lst" style="width: 610px;"><option value="/testing/testSearch.cfm?searchClass=agent&idd=1&more=1&alphabetical=1&letter=Y&whichsearc h=ress#ycco">Page 1: Test String here
</option></select>
</form>
<end snip>
The only text I care about is getting the following (see the end of the 4th line)
"ycco" "Test String here"
Note that the above can be any text, so I can't just grep for them. I know that "ress#" is definitely there though.
Any ideas?