/* 聽說註明使用的語言、環境 * 問題有可能較容易被解決... */ excel 2010 win7 code is as below Option Explicit Sub t() Dim reg As Object Dim s As String Dim match As Object Set reg = CreateObject("VBScript.RegExp") reg.Pattern = "(123.*?abc)" reg.ignoreCase = True reg.MultiLine = False reg.Global = True s = "dfr123 123 1235abc" Set match = reg.Execute(s) End Sub and the result is http://i.imgur.com/VZda4lY.png 小弟想要抓到最短的1235abc 字串 請問要如何更正?