core/src/main/java/org/trimou/util/Patterns.java
public static Pattern newMustacheTagPattern(Configuration configuration) {
        StringBuilder regex = new StringBuilder();
        regex.append(Pattern.quote(configuration
                .getStringPropertyValue(EngineConfigurationKey.START_DELIMITER)));
        regex.append(".*?");
        regex.append(Pattern.quote(configuration
                .getStringPropertyValue(EngineConfigurationKey.END_DELIMITER)));
        return Pattern.compile(regex.toString());
    }
public static Pattern newMustacheTagPattern(Configuration configuration) {
        StringBuilder regex = new StringBuilder();
        regex.append(Pattern.quote(configuration
                .getStringPropertyValue(EngineConfigurationKey.START_DELIMITER)));
        regex.append(".*?");
        regex.append(Pattern.quote(configuration
                .getStringPropertyValue(EngineConfigurationKey.END_DELIMITER)));
        return Pattern.compile(regex.toString());
    }
public static Pattern newMustacheTagPattern ( Configuration configuration ) { StringBuilder regex = new StringBuilder ( ) ; regex . append ( Pattern . quote ( configuration . getStringPropertyValue ( EngineConfigurationKey . START_DELIMITER ) ) ) ; regex . append ( ".*?" ) ; regex . append ( Pattern . quote ( configuration . getStringPropertyValue ( EngineConfigurationKey . END_DELIMITER ) ) ) ; return Pattern . compile ( regex . toString ( ) ) ; }
Delimiters are quoted to avoid regexp reserved characters conflict.

@param configuration
@return the new delimiters pattern
Delimiters are quoted to avoid regexp reserved characters conflict .