Removed regex global variables

I'm not sure, but I think global variables aren't really thread safe or
something like that. :o