for the regex now the functions name is : func captureGroups(from regexPattern: String) -> [String]? { and fixing some spaces and one typo. I am sorry, I am quite new to this. Hope I did not change too much at once. Thank you