Title: [Java] halp plz Author: waterapple Pastebin link: http://pastebin.com/U5Fq52Th First Edit: Thursday 1st of January 2015 02:07:13 AM CDT Last Edit: Thursday 1st of January 2015 02:07:13 AM CDT         mat = titlePattern.matcher(text);         if(!mat.find()) {                 if (text.toLowerCase().contains("class=\"op\"".toLowerCase())){                         // Throw exception if no title for OP                         throw new ContentParseException("Could not parse thread (post title regex failed)(No title for OP)");                 }                 else if (text.toLowerCase().contains("class=\"reply\"".toLowerCase())){                         // Don't throw exception if not OP                         // Empty string will be replaced by NULL object later on in the code                         String title = new String("");                 }                 else{                         // Throw exception if neither is found                         throw new ContentParseException("Could not parse thread (post title regex failed)(Neither OP or reply!)");                 }         }         else{                 String title = new String(mat.group(1));         }