Forum Discussion
ChristopheC
15 years agoContributor
I found
the solution to my problem :
Set objFSO = CreateObject("Scripting.fileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\Users\TestAdmin\Desktop\Essai.XML", 1)
strText = objFile.ReadAll
objFile.Close
Set RegExM = New RegExp
RegExM.Pattern = "<M_CODE>[\s\S]+</M_CODE>"
RegExM.Global = True
strNewTextM = RegExM.Replace(strText, "")
Set objFile = objFSO.OpenTextFile("C:\Users\TestAdmin\Desktop\Essai.XML", 2)
objFile.WriteLine strNewTextM
objFile.Close
the solution to my problem :
Set objFSO = CreateObject("Scripting.fileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\Users\TestAdmin\Desktop\Essai.XML", 1)
strText = objFile.ReadAll
objFile.Close
Set RegExM = New RegExp
RegExM.Pattern = "<M_CODE>[\s\S]+</M_CODE>"
RegExM.Global = True
strNewTextM = RegExM.Replace(strText, "")
Set objFile = objFSO.OpenTextFile("C:\Users\TestAdmin\Desktop\Essai.XML", 2)
objFile.WriteLine strNewTextM
objFile.Close
Related Content
- 5 years ago
- 4 years ago
- 8 years ago