blob: d0894c2085d31793486861024c8dd42ab7d7475e [file] [log] [blame]
// RUN: true
import Foundation
@inline(__always)
public func replace(rgx: NSRegularExpression, in: String, with: String, x: NSRange) -> String {
return rgx.stringByReplacingMatches(in: `in`, options: [], range: x, withTemplate: with)
}