RegexExpressionParser
Parser that parses expressions that contains regular expressions.
-
Expression pattern - regular expression.
Declaration
Swift
let pattern: ExpressionPattern -
Parser initializer.
Declaration
Swift
required init(_ pattern: ExpressionPattern)Parameters
patternExpression pattern that should be regular expression.
-
Parses pattern passed during initialization and returns expression matcher if pattern is valid.
Declaration
Swift
func parse() -> ExpressionMatcher?Return Value
ExpressionMatcherobject or nil if pattern is not valid. -
Get regular expression pattern from pattern passed during initialization.
Declaration
Swift
private func regexPattern() -> RegexPattern?Return Value
RegexPatternor nil when there is no regular expression in the pattern.
View on GitHub
RegexExpressionParser Class Reference