Some experiments with RegExps. Tested using Java.