fixed regular expression to find class