public final class Patterns extends Object
| Modifier and Type | Method and Description |
|---|---|
static Pattern |
newHelperIntegerLiteralPattern() |
static Pattern |
newHelperLongLiteralPattern() |
static Pattern |
newMustacheTagPattern(Configuration configuration)
Delimiters are quoted to avoid regexp reserved characters conflict.
|
static Pattern |
newSetDelimitersContentPattern()
Useful to extract start and end delimiters from "set delimiters" tag
content, e.g.
|
public static Pattern newMustacheTagPattern(Configuration configuration)
configuration - public static 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 Pattern newHelperIntegerLiteralPattern()
public static Pattern newHelperLongLiteralPattern()
Copyright © 2017. All rights reserved.