-
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.
Any help would be appreciated!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks