Edit: thanks for the reg answers below. What if my goal is to strictly emulate mysql like operator,which seems to ignore \n in between characters?
what's java equivalent of mysql string search operator 'like'?
I need to search for strings that might have \n end of line or other white spaces between them. for example, abc\n efg
string.indexOf("abcefg") doesn't work.