File tree 1 file changed +12
-15
lines changed
1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ ChinaMobilePhoneNumberRegex] wrappers for iOS and macOS in Swift.
4
4
5
- ## Usage
5
+ ## Features
6
+ - Pure-Swift interface
7
+ - Well-documented
8
+ - Extensively tested
6
9
7
- ``` swift
8
- let regex = VSRegex () // Match all numbers by default.
9
- let isMatch = regex.matches (" +8613800138000" )
10
- print (isMatch) // true
10
+ ## Requirements
11
11
12
+ - iOS 8.0+ / macOS X 10.9+ / tvOS 9.0+ / watchOS 2.0+
13
+ - Xcode 9.0+
14
+ - Swift 4.0+
12
15
13
- let regex = VSRegex (.carrier (.chinaTelecom ))
14
- let isMatch = regex.matches (" +8613800138000" )
15
- print (isMatch) // false
16
+ ## Quick Start
16
17
17
-
18
- let isMatch = VSRegex.matches (" +8613800138000" )
19
- print (isMatch) // true
18
+ ``` swift
19
+ import VSRegex
20
20
21
-
22
- let isMatch = VSRegex.is (" +8613800138000" , matches : .carrier (.chinaMobile ))
21
+ let isMatch = VSRegex.matches (" +8613800138000" )
23
22
print (isMatch) // true
24
-
25
- ...
26
23
```
27
24
28
25
## Installation
You can’t perform that action at this time.
0 commit comments