mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:34:15 +08:00
Update 09.2.md: 修复代码缩减问题 (#810)
Co-authored-by: qiujinfeng <qiujinfeng@qianxin.com>
This commit is contained in:
@@ -22,11 +22,13 @@ ok, _ := regexp.MatchString(pat, searchIn)
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"regexp"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
func main() {
|
||||
//目标字符串
|
||||
searchIn := "John: 2578.34 William: 4567.23 Steve: 5632.18"
|
||||
|
Reference in New Issue
Block a user