Re: Searching for what is not there using REGEX in only a single step

2004-06-01 Thread Bob Bell
On Fri, May 28, 2004 at 01:08:25PM -0400, Greg Rundlett [EMAIL PROTECTED] wrote: NOTE: I know how to solve this problem by processing the text in 2 steps, first finding all occurences of /A(.*)C/ and then searching for B in $1, but I'm wondering if there is some advanced expression for doing

Searching for what is not there using REGEX in only a single step

2004-05-28 Thread Greg Rundlett
NOTE: I know how to solve this problem by processing the text in 2 steps, first finding all occurences of /A(.*)C/ and then searching for B in $1, but I'm wondering if there is some advanced expression for doing it in only one step. I have an interesting little problem that I'm wondering if

Re: Searching for what is not there using REGEX in only a single step

2004-05-28 Thread Michael ODonnell
It's possible you could approach the problem more simply, maybe like this: starting from every instance of /fh start gathering all text except anything that looks like a tag (ie. discard all tags) up until the point where you find an instance of /location_addr1. You're then