diff options
Diffstat (limited to 'BJC-Utils2/data')
| -rw-r--r-- | BJC-Utils2/data/formats.sprop | 9 | ||||
| -rw-r--r-- | BJC-Utils2/data/regexes.sprop | 9 |
2 files changed, 15 insertions, 3 deletions
diff --git a/BJC-Utils2/data/formats.sprop b/BJC-Utils2/data/formats.sprop index bdd9286..ba54208 100644 --- a/BJC-Utils2/data/formats.sprop +++ b/BJC-Utils2/data/formats.sprop @@ -5,7 +5,14 @@ #################################################### ## Format the three types of string escapes into a valid pattern. +## The three types are: +## 1) Short escapes. +## 2) Octal escapes. +## 3) Unicode escapes. stringEscape \\(%1$s|%2$s|%3$s) -## Format the parts of a regex into one that matches java-style double-quoted strings +## Format the parts of a regex into one that matches java-style double-quoted strings. +## The parts are: +## 1) Anything that's not a possible escape sequence or quote. +## 2) A possible escape sequence. doubleQuotes ("(%1$s|%2$s)*")
\ No newline at end of file diff --git a/BJC-Utils2/data/regexes.sprop b/BJC-Utils2/data/regexes.sprop index bece4d3..6c40e67 100644 --- a/BJC-Utils2/data/regexes.sprop +++ b/BJC-Utils2/data/regexes.sprop @@ -15,5 +15,10 @@ unicodeStringEscape u[0-9a-fA-F]{4} ## Match an unescaped quote in a string. unescapedQuote (?<!\\)\" -## Match characters that aren't escapes. -nonStringEscape [^\\\"]+
\ No newline at end of file +## Match one or more characters that aren't part of an escape or a quote. +nonStringEscape [^\\\"]+ + +################################## +# Miscellaneous validation regexes +################################## +intLiteral \A[+\-]\d+\Z
\ No newline at end of file |
