Functions
The following functions are available globally.
-
Searches
searchString
usingregex
and returns the resultingRegex.MatchResult
.Declaration
Swift
public func =~ (searchString: String, regex:Regex) -> Regex.MatchResult
-
Returns the
String
created by replacing the regular expression matches inregexResult
usingreplacementTemplate
.Declaration
Swift
public func map (regexResult:Regex.MatchResult, replacementTemplate:String) -> String