Category Archives: regex

Java RegEx

Test Harness import java.io.Console; import java.util.regex.Pattern; import java.util.regex.Matcher;   public class RegexTestHarness {   public static void main(String[] args){ Console console = System.console(); if (console == null) { System.err.println("No console."); System.exit(1); } while (true) {   Pattern pattern = Pattern.compile(console.readLine("%nEnter … Continue reading

Posted in regex | Tagged , | Leave a comment