I have what seems to be a simple Expression but for the life of me I can't
get it to work:
What I want to do is replace the information between tags with vbCrLf:
This:
...
Rule>" jhsadkjsk asjlksd lkjlsadj "<Rule Id
...
With This:
...
Rule>
<Rule Id
...
Here is the code:
Set objRegExp = New RegExp
objRegExp.IgnoreCase = True
objRegExp.Global = True
objRegExp.Pattern = "[Rule>.<Rule Id]"
strNewText = objRegExp.Replace(strNewText, "Rule>" & vbCrLf &"<Rule Id")
Set objRegExp = Nothing
Thank you in advance for your help!