Pattern () { Pattern pattern = myDelimitersPattern; if (pattern == null) { if (StringUtil.isEmpty(myModuleConfiguration.escapeString)) { pattern = Pattern.compile(myModuleConfiguration.delimitersPattern); } else { String quotedEscapeString = Pattern.quote(myModuleConfiguration.escapeString); pattern = Pattern.compile("(" + quotedEscapeString + quotedEscapeString + ")|(?:(" + quotedEscapeString + ")?(" + myModuleConfiguration.delimitersPattern + "))"); } myDelimitersPattern = pattern; } return pattern; }