Aska·May 13, 2016Do not use the String.characters.count for the range of NSRegularExpression and NSDataDetector.This is the code that frequently see, but does not work correctly.