NSTextCheckingResult
public extension NSTextCheckingResult
-
Returns groups in regex result
Declaration
Swift
func groups(testedString: String) -> [String]
Parameters
testedString
the original source
Return Value
array of matches. Note that the 0th element is the whole match, the 1st is the first captured group