Hi I have the following code which is meant to find the word \"is\" but not when it is within another string so the word \"this\" should not return a match so I use \\b. But
Double escape it:
Pattern p = Pattern.compile("\\bis\\b");
Regex in Java requires you to doubly escape certain special regex symbols, one escaping for Java and another for underlying regex engine.