diff options
Diffstat (limited to 'src/regex/RegexTest.java')
-rw-r--r-- | src/regex/RegexTest.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/regex/RegexTest.java b/src/regex/RegexTest.java index 20a80e6..857f61d 100644 --- a/src/regex/RegexTest.java +++ b/src/regex/RegexTest.java @@ -103,10 +103,11 @@ public class RegexTest { } static void checkString() { - // String ::= (UnescapedChar | "\" EscapedChar)* - // UnescapedChar ::= Char - ["] = "\" - // (* All Unicode chars but quote and backslash *) - // EscapedChar ::= ["] | "\" + /* String ::= (UnescapedChar | "\" EscapedChar)* + * UnescapedChar ::= Char - ["] - "\" + * (* All Unicode chars but quote and backslash *) + * EscapedChar ::= ["] | "\" + */ RegexTest reString = new RegexTest("([^\\\"\\\\]|\\\\[\\\"\\\\])*"); reString.assertOk(""); reString.assertOk("abc"); |