I'm new to Regex. I try to build a NSScanner using Regex in my iOS 7 and Parse String and Data . I try to understand how does this regex and pattern matching work.
Note: I only try to deal with one of cases:
email ( name )
My friend suggests me to try this code. My question is that how does the following regex accomplish that?
NSString *someRegexp = @".*[\\s]*\\({1}(.*)"
Here are some Testing examples:
// [email protected] (Jeff Chang)
// [email protected] ()