Hi folks.

I've a page of text, a search term, and a start 'tag' and an end 'tag' within 
which I wish to search.  I wish to grab blocks between the start and end tags 
if they contain the search term.

So far I've got this:

   @found = $page=~ m/$tagStart(.*?$TERMS.*?)$tagEnd/sig;

But it of course grabs from the first occurance of $tagStart.  So I thought to 
negate more than one occurance of $tagStart, using:

   @found = $page=~ m/$tagStart([^$tagStart]?.*?$TERMS.*?)$tagEnd/sig;

But that's not working.

Please help.......!

lee
___________________________________________________________________

Lee Goddard IS MSC
Graduate Research Centre in Cognitive Science, University of Sussex
<[EMAIL PROTECTED]>            <http://www.webslave.u-net.com>

"Post-modernism...the Grande Narrative that denies Grande Narrative."
                       - Cedric Watts (personal correspondence, 1997)

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to