Regular expressions, often called regexes, are a standard for pattern matching in text processing and a powerful tool for manipulating strings. When using regular expressions, you need to specify a string as the pattern string to retrieve the target string. You can use regular expressions to find substrings in a string that match the pattern represented by the regular expression, and you can also perform text replacements or extract substrings from target text.
Reference "iOS Programming Guide"