| ... | @@ -240,12 +240,19 @@ do { |
... | @@ -240,12 +240,19 @@ do { |
|
|
|
|
|
|
|
### 文字列
|
|
### 文字列
|
|
|
|
|
|
|
|
|
文字列の一部を得る
|
|
|
```swift
|
|
```swift
|
|
|
// 文字列の一部を得る
|
|
|
|
|
"abcd1234".subStr(from: 4, length: 4) // -> "1234"
|
|
"abcd1234".subStr(from: 4, length: 4) // -> "1234"
|
|
|
"abcd1234".subStr(from: 4) // -> "1234"
|
|
"abcd1234".subStr(from: 4) // -> "1234"
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
正規表現
|
|
|
|
```swift
|
|
|
|
if "asdf1234".isMatch(pattern: "^[0-9a-zA-Z]+$") {
|
|
|
|
print("ok")
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
## Utils
|
|
## Utils
|
|
|
|
|
|
|
|
### Appバーっジョン
|
|
### Appバーっジョン
|
| ... | | ... | |