good - was wondering where these slashes were coming from. btw - if you do return stripslashes($var); you get a segmentation fault! (core dump or whatever) anyway got my program working nicely. will be posting it up shortly. its one of these page analysers / spiders. thanks for that rgds Alex