The Regex I have written so far is:
let closure = try! NSRegularExpression(pattern: "\\\\B\\\\((.*)\\\\)\\\\s*->\\\\s*[a-zA-Z\\\\(\\\\)]*") let str