
let message = "Name: John"
let regex = /Name:\s+([a-zA-Z]+)/

if let match = message.firstMatch(of: regex) {
   let found = match.output.1
   print("The name is: \(found)")  // "The name is: John"
}
