Code:
Dim re
set re = new regexp
re.ignorecase = true
re.Pattern = "(<li>\s*)(.*?)(\s*(<\/li>)?)"
str = "<li>some list element</li>"
str2 = "<li>some other list element"
re.replace(str,"abc $2 def")
re.replace(str2,"abc $2 def")
the above code seems to only work for str2, and not str1.
the full string that's being parsed looks like this:
<ol>
<li>something here
<li>something else here</li></ol>
I have no idea what could be wrong with my regexp.
TIA leo
------------
Leo Mendoza
lmendoza@garbersoft.net