6 lines
199 B
Swift
6 lines
199 B
Swift
|
|
import Foundation
|
||
|
|
|
||
|
|
let orig = "I am the original string"
|
||
|
|
let result = orig.stringByReplacingOccurrencesOfString("original", withString: "modified", options: .RegularExpressionSearch)
|
||
|
|
println(result)
|