Functions

The following functions are available globally.

  • Searches searchString using regex and returns the resulting Regex.MatchResult.

    Declaration

    Swift

    public func =~ (searchString: String, regex:Regex) -> Regex.MatchResult
  • Returns the String created by replacing the regular expression matches in regexResult using replacementTemplate.

    Declaration

    Swift

    public func map (regexResult:Regex.MatchResult, replacementTemplate:String) -> String