Latest 1.0.0
Homepage https://github.com/VSRegex/VSRegex-Objc
License MIT
Platforms ios 8.0, osx 10.9, watchos 2.0, tvos 9.0
Authors

VSRegex

ChinaMobilePhoneNumberRegex wrappers for iOS and macOS in Objective-C.

Requirements

  • iOS 8.0+ / macOS X 10.9+ / tvOS 9.0+ / watchOS 2.0+

Quick Start

#import "VSRegex.h"

BOOL isMatch = [VSRegex matchesWithString:@"+8613800138000"];
NSLog(@"%d", isMatch); // YES

Installation

CocoaPods

pod 'VSRegex-Objc', '~> 1.0.0'

License

MIT

Latest podspec

{
    "name": "VSRegex-Objc",
    "version": "1.0.0",
    "summary": "Regular expressions that match the mobile phone number in mainland China.",
    "description": "ChinaMobilePhoneNumberRegex wrappers for iOS and macOS in Objective-C.",
    "homepage": "https://github.com/VSRegex/VSRegex-Objc",
    "license": "MIT",
    "authors": {
        "VincentXue": "[email protected]"
    },
    "social_media_url": "https://twitter.com/SuetFungSit",
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "watchos": "2.0",
        "tvos": "9.0"
    },
    "swift_version": "4.2",
    "source": {
        "git": "https://github.com/VSRegex/VSRegex-Objc.git",
        "tag": "1.0.0"
    },
    "source_files": "Sources/*.{h,m}",
    "resource_bundles": {
        "VSRegex": [
            "Sources/Resources/regex.json"
        ]
    }
}

Pin It on Pinterest

Share This