On 03/03/2008, Tom Fernandes <[EMAIL PROTECTED]> wrote: > Hi, > > When match number is set to a negative number and I match on e.g. > > (\w+)=(\w+) > > Is it possible to match on a certain line or is it only possible to apply > this > pattern to the whole page (and thus the first line matching this pattern)?
The RE is applied to the whole body (or headers etc), and first finds all the matches. Depending on the match number specified, the appropriate match(es) is/are returned. > Using something like: > > my_unique_string_in_the_line.*(\w+)=(\w+) > > will only match once. > Yes, if the prefix is unique. It might be nice if the RE could operate on a subset of the page, but that's not currently possible. If the page is reasonably well structured, the XPath extractor might be a suitable alternative, as that can search in multiple levels of context. > regards, > > > Tom > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

