On Apr 13, 9:22 pm, amalasingh <[email protected]> wrote:
> Hi,
> I am in the process of migrating some static html pages to ROR . 
> Seehttp://pm.tamil.net/akaram_uni.html.
> Currently it is difficult to migrate because the href references point
> to different locations.
> Eg.http://www.tamil.net/projectmadurai/pub/pm0027/pm0027.pdfhttp://www.tamil.net/projectmadurai/pub/pm0241/pm0241.pdf
> I want to move the .pdf files to one location and point the href
> references to one location.

You really don't want to use a regex to parse html - you'll end up in
a world of pain. Use an actual html parser like Nokogiri

Fred
> Please note that this is one such .html. I got loads of .html files
> similarly each href locations are pointing to different locations.
> Please provide me a regex expression to find and replace all such
> locations.
>
> Cheers
> Amala Singh
> Telford UK

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to