(String[] args)
| 39 | + m.start() + " end = " + m.end()); |
| 40 | } |
| 41 | public static void main(String[] args) { |
| 42 | for(String in : input.split("\n")) { |
| 43 | System.out.println("input : " + in); |
| 44 | for(String regex : new String[]{"\\w*ere\\w*", |
| 45 | "\\w*ever", "T\\w+", "Never.*?!"}) |
| 46 | examine(in, regex); |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | /* Output: |
| 51 | input : As long as there is injustice, whenever a |