回复 3# 网络书生
### 友情提示:本脚本由 Au3.REHelper 于 2018/03/12 10:50 自动生成,不保证其正确性,请自行测试 ###
Local $sSource = _
'okerStars Hand #279227830045745737014:' & @CRLF & _
'20:45:51 ET' & @CRLF & _
"Table '279227836565' button" & @CRLF & _
'Seat 1: 2456919248 ' & @CRLF & _
'Seat 2: 1835165825' & @CRLF & _
'Seat 3: 807556511 ' & @CRLF & _
'Seat 4: 2595026560 ' & @CRLF & _
'2456919248: posts ' & @CRLF & _
'1835165825: posts ' & @CRLF & _
'807556511: posts ' & @CRLF & _
'2595026560: posts' & @CRLF & _
'okerStars Hand #56862792278014:' & @CRLF & _
'20:45:51 ET' & @CRLF & _
"Table '642792278365' button" & @CRLF & _
'Seat 1: 572456919248 ' & @CRLF & _
'Seat 2: 541835165825' & @CRLF & _
'Seat 3: 43807556511 ' & @CRLF & _
'Seat 4: 4562595026560 ' & @CRLF & _
'2456919248: posts ' & @CRLF & _
'1835165825: posts ' & @CRLF & _
'807556511: posts ' & @CRLF & _
'2595026560: posts'
;~MsgBox(0, '源字符串', $sSource)
Local $sSRERe = StringRegExpReplace($sSource, '((?<=\s)\d{8})\d+', '\1')
MsgBox(0, '替换结果', $sSRERe)
|