how to match/search Metacharacters using RegularExpression? Hi, i'm new to ios development. Can someone give some example to how to use the Metacharacters in RegularExpression pattern? var regex = try! NSRegularExpression(pattern: "[\D]", options:[]) this shows invalid escape sequence in literal error App & System Services General Foundation 2 0 663 Nov ’21