add testcase for RegularExpression.java