QUOTE(UnShavenGod @ Mar 6 2004, 04:22 PM)
it's really hard to help people when they dump a whole bunch of irrelevant code on the message.... It would save everyone a lot of time if you would do some really simple debugging before posting. :huh:
And what error message is it giving?
My guess would be that it has to do with the regex operators. Might you need to be double-escaping those?
Example, + means "1 or more of the preceding character" ...
so your expression +o( might cause problems -- a "+" operator with no preceding character, AND an unmatched "("
If you want to match those characters, I believe you need to precede them with \\
... unless the program is using \Q ... \E regex matching --- but i might doubt that it is.
other tricky characters that require similar treatment: ^$*+?\[]{}()
I think that's all of them...
:unsure: