|
楼主 |
发表于 2010-9-26 15:06:26
|
显示全部楼层
本帖最后由 liufenglg 于 2010-9-26 15:19 编辑
#include <array.au3>
$Insert=3
$c = '646654164846525321023'
$Numstrout = StringRegExpReplace($c, '(.+?)(?:.{' & $Insert & '})+$', '$1')
$Numstrout1 = StringRegExpReplace($c ,'^' & $Numstrout, '')
$Numstrout1 = StringRegExpReplace($Numstrout1, '(.{' & $Insert & '})', '$1,')
;Return $Numstrout_q & $Numstrout & ',' & StringTrimRight($Numstrout1, 1) & $Numstrout_h
MsgBox(0,'',$numstrout1)
为什么数字后面会有个','
原来光要$Numstrout1 = StringRegExpReplace($Numstrout1, '(.{' & $Insert & '})', '$1,')这句就可以了,转晕了
$Numstrout1 = StringRegExpReplace($c, '(.{' & $Insert & '})', '$1,')
StringTrimRight($Numstrout1, 1) |
|