VBScript RegExp HTML Tag
Hello, I have a problem about vbscript regular expression. Here is part of
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.
Any help would be appreciated!
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center