From 0be891100df83544c89651c815105832e3e11eb9 Mon Sep 17 00:00:00 2001 From: bjculkin Date: Thu, 6 Apr 2017 16:02:40 -0400 Subject: Start moving things to properties This cuts down on the amount of regex escapes --- BJC-Utils2/data/formats.sprop | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 BJC-Utils2/data/formats.sprop (limited to 'BJC-Utils2/data/formats.sprop') diff --git a/BJC-Utils2/data/formats.sprop b/BJC-Utils2/data/formats.sprop new file mode 100644 index 0000000..bdd9286 --- /dev/null +++ b/BJC-Utils2/data/formats.sprop @@ -0,0 +1,11 @@ +# File storage for format strings + +#################################################### +# Format strings for handling double-quoted strings. +#################################################### + +## Format the three types of string escapes into a valid pattern. +stringEscape \\(%1$s|%2$s|%3$s) + +## Format the parts of a regex into one that matches java-style double-quoted strings +doubleQuotes ("(%1$s|%2$s)*") \ No newline at end of file -- cgit v1.2.3