Michael,
Cerebrus is right, you might want to ask Reg Ex questions in a more
appropriate place.
That said I'll throw in my 2 cents ;-)
Instead of looking for a preformatted answer you'd be better of
learning how to do this from scratch, if you are serious about using
regular expressions.
Two resources I found very helpful when I started using Regular
Expression were these two:
Microsoft:
http://msdn.microsoft.com/library/de...ting051099.asp
Not that you are (or should be using) VBScript for anything besides old
server side ASP pages, but I found this article helpful since it
provided a very nice synopsis of Regular Expression, it is a handy
reference.
DevGuru:
http://www.devguru.com/Technologies/...ef/regexp.html
I love this site. Its a great quick reference.
So to help you along here is a Javascript example Regular Expression I
use to rip out entire HTML tags and their contents:
function removeTag( strInput, tagName )
{
var re = new RegExp("<"+ tagName +"(.|\n)*</"+ tagName +">", "g");
return strInput.replace(re, "");
}
but this could also be done with Literal Notation (when the expression
will be fixed not variable like in the above example).
(here "tagName" is fixed as "s:Schema"...can you tell now that I'm
working with XML ;-) ):
function removeTag( strInput )
{
return strInput.replace( /<s:Schema([\s\S]*)<\/s:Schema>/ig, "");
}
So just to show you how different to functions can be that do the same
thing!
Hope that gets you started ;-)