jeudi 22 janvier 2015

boundary java regex do nto work


Vote count:

0




Could you please say why this expression do not return true (return false)?



public class test {

public static void main(String[] args) throws IOException{

String str = "The dog plays";
boolean t = str.matches("\\bdog\\b");

System.out.println(t);

}


}



asked 24 secs ago







boundary java regex do nto work

Aucun commentaire:

Enregistrer un commentaire