CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions: Re: [Laurent_R] Remove all HTML code, except for certain tags: Edit Log



Zhris
Enthusiast

Oct 24, 2014, 4:01 AM


Views: 30435
Re: [Laurent_R] Remove all HTML code, except for certain tags

Based on the sample HTML provided, the tag_* strings can potentially occur wherever (attribute values, content, not tag or attribute names but perhaps they might). Although possible to use a HTML parser for atleast part of the task, the tag_* strings are very regularly formatted i.e. we can easily match them directly without having to consider the surrounding HTML syntax. Therefore in my opinion a HTML parser would be an overkill.

Regards,

Chris


(This post was edited by Zhris on Oct 24, 2014, 4:11 AM)


Edit Log:
Post edited by Zhris (Enthusiast) on Oct 24, 2014, 4:06 AM
Post edited by Zhris (Enthusiast) on Oct 24, 2014, 4:07 AM
Post edited by Zhris (Enthusiast) on Oct 24, 2014, 4:11 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives