Hi I am having a problem in regexec funtion. What I did initially was compiled a regular expression and send it in a recursive function. But there is some probem in that, once the regexec executes the function, it modifies the compiled regular expression. Can anyone tell me for sure if this is the case and is there is an alternative way of solving this, I mean is there a way that I compile the regular expression just once insted of compiling it again and again. Regards Amit