public final class Patterns
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.regex.Pattern |
newHelperNameValidationPattern() |
static java.util.regex.Pattern |
newHelperStringLiteralPattern() |
static java.util.regex.Pattern |
newMustacheTagPattern(Configuration configuration)
Delimiters are quoted to avoid regexp reserved characters conflict.
|
static java.util.regex.Pattern |
newSetDelimitersContentPattern()
Useful to extract start and end delimiters from "set delimiters" tag
content, e.g.
|
public static java.util.regex.Pattern newMustacheTagPattern(Configuration configuration)
configuration - public static java.util.regex.Pattern newSetDelimitersContentPattern()
<% %> (without equals signs).
First and third groups contain one or more non-whitespace characters.
Second group contains one or more whitespace characters.
Originally we used the following pattern:
([[^=]&&\\S]+)(\\s+)([[^=]&&\\S]+).public static java.util.regex.Pattern newHelperNameValidationPattern()
public static java.util.regex.Pattern newHelperStringLiteralPattern()
Copyright © 2014. All Rights Reserved.