Archive for the 'Rants' Category

Tue
28
Dec '04
java.util.regex.*
by Frank Spychalski filed under Java, Rants, Work

A little quiz - what’s the output of this little code snippet?

Pattern p = Pattern.compile("aaa");
System.out.println(p.matcher("bbbaaabbb").matches());
System.out.println(p.matcher("bbbaaabbb").replaceAll("ccc"));

Read the rest of this entry »