Search
Other DB Replacer questions
Forum

Mistakes made updating internal links

Don Schaefer's Avatar Don Schaefer
Thanks to your help with a prior issue. I was able to replace about 600 instances of the old tabs with new.

I tried replacing some internal links, though, and messsed up.

I don't remember the exact search term I used but I was replacing:
<a href="images/stories/Bill-Of-Rights/Documents/artistsbillofrightscreatespositivepr.pdf">adopt the principles</a>

with:
<a href=“images/stories/Bill-Of-Rights/Documents/Bill_of_Rights_Principles.pdf">adopt the principles</a>

This is how the link portion of my result ended up:
"“images/stories/Bill-Of-Rights/Documents/Bill_of_Rights_Principles.pdf&quot;

Is there any way to fix?
Peter van Westen's Avatar Peter van Westen ADMIN
Easiest is to just place roll back to the backup of your database you made just before the replacement.

Otherwise you could try and search for something like:
"“images/...&quot;

Try:
"“(images/.*?)&quot;
Replace with:
"\1"

Also make sure you use the right type of quotes in your replacements.
A " is not the same as a “
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription