Help please with find and replace

Tool for Search and Replace across multiple files.
Post Reply
drew
Posts: 37
Joined: Tue Mar 13, 2012 5:03 pm

Help please with find and replace

Post by drew »

Would like to grab the header from here <title>Just Friends</title>

and insert the information into these locations

<meta property="og:title" content="$1"/>
data-a2a-title="$1">

Have tried some of the suggestions in this forum and elsewhere - nothing seems to work

I have changed .html to .txt
This is a trial version if that affects functionality. I'm happy to purchase if this will work
Would like to do this as a batch process since there are several thousand pages to be updated
Last edited by drew on Sun Apr 23, 2017 5:25 am, edited 1 time in total.
User avatar
DigitalVolcano
Site Admin
Posts: 1717
Joined: Thu Jun 09, 2011 10:04 am

Re: Help please with find and replace

Post by DigitalVolcano »

Are you keeping the title tag or replacing it with the new lines?

I assume the two replace lines you list already exist in the file and you just want to change the $1 part? (This is quite tricky!)
drew
Posts: 37
Joined: Tue Mar 13, 2012 5:03 pm

Re: Help please with find and replace

Post by drew »

You are correct, I would like to keep the title tag and pull the information from that tag to populate an og tag and social tag.

Tricky you say, but is it possible?


Edit: deleted verbose reply
drew
Posts: 37
Joined: Tue Mar 13, 2012 5:03 pm

Re: Help please with find and replace

Post by drew »

*bump*

Is what I am trying to do possible with Text Crawler?
User avatar
DigitalVolcano
Site Admin
Posts: 1717
Joined: Thu Jun 09, 2011 10:04 am

Re: Help please with find and replace

Post by DigitalVolcano »

Sorry, I can't think of an easy way to do this.
drew
Posts: 37
Joined: Tue Mar 13, 2012 5:03 pm

Re: Help please with find and replace

Post by drew »

Okay thanks
Post Reply