jyswjjgdwtdtj 当前离线
中尉
/(.)\1(.)\2/COPY
TOP
bangyou 当前离线
列兵
czjt1234 当前离线
少校
s = "domen.twxxyy" Set oRegExp = New RegExpoRegExp.Global = TrueoRegExp.MultiLine = TrueoRegExp.IgnoreCase = FalseoRegExp.Pattern = "(.)\1(.)\2" For Each oMatch In oRegExp.Execute(s) MsgBox oMatchNextCOPY
Dim oRegExp, s s = "domen.tw" Set oRegExp = New RegExpoRegExp.Global = TrueoRegExp.MultiLine = TrueoRegExp.IgnoreCase = FalseoRegExp.Pattern = "(d)(o)(m)(e)(n.tw)"MsgBox oRegExp.Replace(s, "Demon.tw") 'Demon.twMsgBox oRegExp.Replace(s, "D$4$3$2$5") 'Demon.twCOPY