日々精進

新しく学んだことを書き留めていきます

2013-02-06から1日間の記事一覧

NSRegularExpression

iOS

NSRegularExpressionに正規表現を渡す時に、文字クラス内に「-」をいれても-にマッチしてくれなくて困った。 NSRegularExpression *regexp = [NSRegularExpression regularExpressionWithPattern:@"[a-z+-_]" options:NSRegularExpressionCaseInsensitive er…