stevebread at yahoo.com wrote: > Thanks, i just tried it but I got the same result. > > I've been thinking about it for a few hours now and the problem with > this approach is that the .*? before the (?=tag2) may have matched a > tag1 and i don't know how to detect it. Maybe like this: 'tag1.+?name="(.+?)".*?(?:<)(?=tag2).*?="adj__(.*?)__' HTH, Rob