please help!
i am parsing html of a site in c#.net and i need to get the img, object, and applet tags from the html to verify if they have alt or longdesc attributes. please help me...
mjzammit
0
Newbie Poster
Recommended Answers
Jump to PostPlease don't make your questions such a puzzle. You mention Regular Expressions in the subject, and "parsing HTML" in the post. You need to "get" certain tags. You need help. There is no question per se in your post. Instead of giving us clues pointing vaguely toward a possible question, …
Jump to Post>"<img.*src\\s*=\\s*(?:\"(?<1>[^\"]*)\"|(?<1\\S+))" but it doesnt work
Erm, why not just this?private HasAttribute ( string src, string tag, string attribute ) { string query = "<" + tag + ".+" + attribute + ".+>"; //... }
All you're doing is checking a specific tag to see if it …
All 7 Replies
tgreer
189
Made Her Cry
Team Colleague
mjzammit
0
Newbie Poster
mjzammit
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
tgreer
189
Made Her Cry
Team Colleague
mjzammit
0
Newbie Poster
mjzammit
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.