hi, im searcing on large html files. i want to find the <pre> start and end tags and then do some substitutions on that and at the same time do substiontions on anything else that doesn't match the <pre> start and end tags.
i was thinking maybe to use the /e switch but cant get it to work. # first matchthe pre section. # if found call onesub() [and do the substituituions there] # if not a pre section # call anothersub() [and do the substituituions there] s/(<pre>>.+?<\/pre>)|(.*?)/&onesub($1)||&anothersub($2)/igesms; is that possible? ../allan