                 for match in matches {
                     if (self.checkForClasses(string: match)) {
                         
-                        var data = Functions.regexSearch(regex: "<td (nowrap=\"nowrap\" )?(class=\"[\\w]*\" )?valign=\"(top|center)\"[^>]*>((?:(?!</td>)[\\s\\S])*)</td>", text: match)
+                        var data = Functions.regexSearch(regex: "<td (nowrap=\"nowrap\")?(\\s)*(class=\"[\\w]*\")?(\\s)*(valign=\"(top|center)\"[^>]*)?>((?:(?!</td>)[\\s\\S])*)</td>", text: match)
                         
                         if (data.count == 0) {
                             countContinue += 1

                }
                
                // check for special error possibilities
                if (countExcluded == matches.count) {
                    return callback(RequestError(type: .listError, code: (700 + countClassmatch)), [])
                }
                if (countContinue == matches.count) {

                
                if (school.gradelistIndices.count == 0) {
                    for match in matches {
                        var data = Functions.regexSearch(regex: "<th (class=\"(tabelleheader|\\$header)\")?(\\s)*align=\"[\\w]*\"(\\s)*(width=\"[\\w%]*\")?(\\s)*scope=\"col\"[\\s]?>((?:(?!</th>)[\\s\\S])*)</th>", text: match)

                        if (data.count == 0) {
                            continue
                        }
