Local $sSource = _
'------------------------------------------------------------------------' & @CRLF & @CRLF & _
'zw#6: xs386544638 (4740 cm)' & @CRLF & @CRLF & _
'blxc dp: [mhK ht5]' & @CRLF & @CRLF & _
'yclz qz 100' & @CRLF & _
'xs386544638 qz 100' & @CRLF & _
'blxc qz 100' & @CRLF & _
'xs271032987 qz 100' & @CRLF & _
'my520 qz 100' & @CRLF & _
'xs344387655 qz 100' & @CRLF & _
'blxc posts small blind 100' & @CRLF & _
'xs386544638 posts big blind 200' & @CRLF & _
'yclz g z 200' & @CRLF & _
'my520 g z 200' & @CRLF & _
'xs344387655 g z 200' & @CRLF & _
'xs271032987 g z 200' & @CRLF & _
'blxc g z 100' & @CRLF & _
'xs386544638 r p' & @CRLF & @CRLF & _
'--- ffp [mh3 htJ htK] ---' & @CRLF & @CRLF & _
'blxc c【dc】zyd 3300' & @CRLF & @CRLF & _
'-------------------------------------------------------------------------' & @CRLF & @CRLF & _
'zw#6: yclz (57010 cm)' & @CRLF & @CRLF & _
'blxc dp: [mh9 mh5]' & @CRLF & @CRLF & _
'j幺m qz 100' & @CRLF & _
'yclz qz 100' & @CRLF & _
'smlyy1 qz 100' & @CRLF & _
'blxc qz 100' & @CRLF & _
'awhy qz 100' & @CRLF & _
'xs271032987 qz 100' & @CRLF & _
'blxc posts small blind 100' & @CRLF & _
'smlyy1 posts big blind 200' & @CRLF & _
'yclz j z 1000' & @CRLF & _
'j幺m g z 1000' & @CRLF & _
'awhy g z 1000' & @CRLF & _
'xs271032987 ' & @CRLF & _
'blxc ' & @CRLF & _
'smlyy1 ' & @CRLF & @CRLF & _
'--- lp ---' & @CRLF & @CRLF & _
'--- df ---' & @CRLF & @CRLF & _
'-------------------------------------------------------------------------' & @CRLF & _
'jspk9000c 2016/03/26 04:03:54' & @CRLF & _
'------------------------------- d 1 j -------------------------------' & @CRLF & _
'zjzwh: #3' & @CRLF & _
'zw#1: pwz (12500 cm)' & @CRLF & _
'zw#2: blxc (91760 cm)' & @CRLF & _
'zw#3: tomdlang (46400 cm)' & @CRLF & _
'zw#4: sddhdm (16620 cm)' & @CRLF & _
'zw#5: xs271032987 (14360 cm)' & @CRLF & _
'zw#6: whyj (32115 cm)' & @CRLF & @CRLF & _
'blxc dp: [fk9 mh9]' & @CRLF & @CRLF & _
'pwz qz 100' & @CRLF & _
'whyj qz 100' & @CRLF & _
'xs271032987 qz 100' & @CRLF & _
'sddhdm qz 100' & @CRLF & _
'blxc qz 100' & @CRLF & _
'tomdlang qz 100' & @CRLF & _
'sddhdm posts small blind 100' & @CRLF & _
'xs271032987 posts big blind 200' & @CRLF & _
'whyj ' & @CRLF & _
'pwz j z 400' & @CRLF & _
'blxc g z 400' & @CRLF & _
'tomdlang j z 2500' & @CRLF & _
'sddhdm ' & @CRLF & _
'xs271032987 ' & @CRLF & _
'pwz ' & @CRLF & _
'blxc '
;~MsgBox(0, '源字符串', $sSource)
Local $sSRERe = StringRegExpReplace($sSource, '(?s)(blxc\h+dp:\V+\v+)(.+?\n)(\V+?blind\h+\d+\v+\V+?blind\h+\d+\v+)', '${2}${3}${1}')
MsgBox(0, '替换结果', $sSRERe)
|