learning Regex with pattern matching -
i'm new regex. try build nsscanner using regex in ios 7 , parse string , data . try understand how regex , pattern matching work.
note: try deal 1 of cases: email ( name )
my friend suggests me try code. question how following regex accomplish that?
nsstring *someregexp = @".*[\\s]*\\({1}(.*)" here testing examples:
// chang0002@student.tc.umn.edu (jeff chang) // mbuntan@staff.tc.umn.edu ()
this poor regex matching names/email addresses. assume have include more cases. regular expression finds pattern matching. checks 0 or more occurrences of character, followed 0 or more occurrence of space, followed 1 open parenthesis "(" 0 or more occurrences of string.
Comments
Post a Comment