If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

VBScript RegExp HTML Tag

Hello, I have a problem about vbscript regular expression. Here is part of
my codes:

dim keyword, dim objRegExp
set objRegExp = new regexp

keyword = ...some key word here

objRegExp.Pattern = .Pattern = "<(.*)>.*<\/\1>" 'For html tag

I need to find and highlight (example: with yellow background) all occurences
of the given keyword from an HTML document (I stream the whole html content
using FileSystem readAll) that is NOT part of the HTML tag.

I first tried to match and replace anything in the content with my keyword.
It worked fine until I tried keywords like "t", "h", etc., that is part
of some standard HTML tags.