Does NSRegularExpression support partial case insensitive?
问题 As the title states, I wonder if NSRegularExpression in both Objective-c or Swift, support partial case insensitive search? Namely, will the pattern recognize (?ismx)? If not, is there a brief reason for this inability? I truly appreciate your explanation. 回答1: From the NSRegularExpression Class Reference: Table 2 Regular Expression Operators ... (?ismwx-ismwx:...) Flag settings. Evaluate the parenthesized expression with the specified flags enabled or -disabled. ... (?ismwx-ismwx) Flag