找回密码
 加入
搜索
楼主: runsnake

[AU3基础] au3的正则的后向引用怎么搞?

 火.. [复制链接]
发表于 2013-1-25 10:06:57 | 显示全部楼层
回复 11# haijie1223

回复 12# happytc
#include <Array.au3>
$sString = 'cab=cab cab=b'
$aRes = StringRegExp($sString, '([abc]+)=\1', 4)
Dim $test0 = $aRes[0], $test1 = $aRes[1]
_ArrayDisplay($test0, '$test0')
_ArrayDisplay($test1, '$test1')
MsgBox(0, '单独使用元素', $test0[0] & @LF & _
                          $test0[1] & @LF & _
                          $test1[0] & @LF & _
                          $test1[1])
发表于 2013-1-25 10:25:45 | 显示全部楼层
回复 16# afan


    谢谢A版,前面我搞错了,不是数组我竟然用了_arraydisplay
发表于 2013-1-25 10:40:06 | 显示全部楼层
回复 15# haijie1223


    ……
你九楼的$test就是数组啊,后面的$test[0]已经是一个值了,你还_arraydisplay,所以木有效果…
发表于 2013-1-25 10:40:57 | 显示全部楼层
回复 17# haijie1223


    对,就是这个意思…
发表于 2013-1-25 10:45:30 | 显示全部楼层
回复 18# annybaby


    一时神经错乱~
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-20 09:04 , Processed in 0.065500 second(s), 15 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表