本帖最后由 apang 于 2012-12-19 16:50 编辑
vbs,练习。。。- Set FSO = CreateObject("Scripting.FileSystemObject")
- Text = FSO.OpenTextFile("a.txt").ReadAll
- With New RegExp
- .Global = True
- .MultiLine = True
- .Pattern = "(.*?)→(.*?)(?: {1,}|$)"
- Text = .Replace(Text,"$2→$1 ")
- End With
- FSO.OpenTextFile("b.txt",2,True).Write Text
复制代码
|