fork(3) download
  1. class Test {
  2. public static void main(String[] args) {
  3. java.util.regex.Pattern p =
  4. java.util.regex.Pattern.compile("\\b#SP\\b".toLowerCase(),
  5. java.util.regex.Pattern.CASE_INSENSITIVE);
  6. java.util.regex.Matcher m = p.matcher("s #SP s".toLowerCase());
  7. if (m.find()) {
  8. System.out.println("Match!");
  9. }
  10. }
  11.  
  12. }
Success #stdin #stdout 0.02s 245632KB
stdin
Standard input is empty
stdout
Standard output is empty