Fixed regular expression when matching class names to be able to handle characters in the paranthesis