ios - What sort of regex is this? -
i found using regex this:
nsstring *pattern = @"i[\\p{alphabetic}&&\\p{uppercase}][\\p{alphabetic}]+"; [nsregularexpression regularexpressionwithpattern:pattern options:0 error:null]; // source: http://www.objc.io/issue-5/getting-to-know-textkit.html // tested. works.
the regular expression looks pretty cool , readable (supposedly more compatible unicode). can find more info on kind of regex? cocoa-only kind of thing?
edit: found comprehensive answer here.
i guess (might totally wrong), kind of regularexpression used unicode property name expression, mentioned. can use nsregularexpression class.
references can found here apple developer page. , secondly unicode.org page.
hope helps.
Comments
Post a Comment