String resrc="Location: "; String data="Location: /cookie-check?"; RE re = new RE(reSrc); if(!re.match(data, RE.MATCH_MULTILINE)) { // returns false !!! }
*** This bug has been marked as a duplicate of 23476 ***