break;
case OP_ANY:
if((matchFlags & MATCH_SINGLELINE) == MATCH_SINGLELINE) {
// Match anything
if(search.isEnd(idx))
{
return -1;
}
idx++;
else
// Match anything but a newline
if (search.isEnd(idx) || search.charAt(idx++) == '\n')
if (search.isEnd(idx) || isNewline(idx))
case OP_ATOM: