diff options
Diffstat (limited to 'BJC-Utils2/data/regexes.sprop')
| -rw-r--r-- | BJC-Utils2/data/regexes.sprop | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/BJC-Utils2/data/regexes.sprop b/BJC-Utils2/data/regexes.sprop new file mode 100644 index 0000000..bece4d3 --- /dev/null +++ b/BJC-Utils2/data/regexes.sprop @@ -0,0 +1,19 @@ +# File storage for static regular expressions. + +######################################################## +# Regular expressions for handling double-quoted strings +######################################################## + +## Match a possible single character escape +possibleStringEscape \\. + +## Match valid string escapes +shortFormStringEscape [btnfr"'\\] +octalStringEscape [0-3]?[0-7]{1,2} +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 |
