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: Intermediate: Re: [jphoang] Find and Replace in html file using CSV: Edit Log



Kenosis
User

May 12, 2013, 8:48 AM


Views: 746
Re: [jphoang] Find and Replace in html file using CSV

What, exactly, needs to be replaced in your html file? A sample of your data might be helpful.

For example, let's say you want to replace "important" with "urgent". The script will need to correctly handle the following:

Code
<div class="important">important</div>

Which "important" needs to be replaced? If it's only the text that's marked up and not the attribute value (or vice versa), the script must correctly distinguish between the two.

Even though your specs say, "...all the oldval's in the html file...", the above issue should first be explicitly clarified to insure your desired substitution results.


(This post was edited by Kenosis on May 12, 2013, 9:00 AM)


Edit Log:
Post edited by Kenosis (User) on May 12, 2013, 8:55 AM
Post edited by Kenosis (User) on May 12, 2013, 8:55 AM
Post edited by Kenosis (User) on May 12, 2013, 8:57 AM
Post edited by Kenosis (User) on May 12, 2013, 8:58 AM
Post edited by Kenosis (User) on May 12, 2013, 8:59 AM
Post edited by Kenosis (User) on May 12, 2013, 9:00 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