use object construction for NSURL and NSRegularExpression