Hi Paul, Just wondering if you could exaplin something to me: 1) What does the following mean in plain english ^\(Target\[[^]]*\]. I'm getting confused by the number of "[" brackets. To be specific I can't see how this part \[[^]]*\] is working. The \[ indicates the match to the "[" string but what I read from [^]] here is that I want the regular expression to match any of these ^] charaters. But there isn't a ^ charater or a ]. 2) What does $!N mean. Thanks Dan