public final class Patterns
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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]+).Copyright © 2013. All Rights Reserved.