At 14:39 -0800 3/30/06, Allen Watson wrote: >You might try multiple find/replace commands.
$lpltext =~ s|\A.+?PriceAs Of</TD>\n</TR>\n||s; # Kill leading $lpltext =~ s|<TR><TD></TD></TR><TR><TD></TD></TR><TR>.+\Z||s; # Kill trailing These are a couple of lines of perl that are actually in use. I'm afraid to edit them to fit your problem because of the extreme probability of error. the \A is the start of a text string and \Z is the end The pipe symbols | are used instead of solidus characters to keep the leaning pole syndrome in check. the || implies replace with nothing. The s at the end says not to stop on line ends. It's a web page that I have reduced to table entries only and the last step is to toll leading and trailing boilerplate before passing the rest to M$ Excel. I donno how many of those features exist in BBEdit's implementation of regular expressions. I'm dead sure that grep by itself won't come close. -- Applescript syntax is like English spelling: Roughly, but not thoroughly, thought through. -- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
