Question About Sequintial Changes

General discussions about Advanced Find and Replace
Post Reply
Smiley
Posts: 2
Joined: Sat Oct 27, 2007 5:52 pm

Question About Sequintial Changes

Post by Smiley »

Hi,
What I would like to do is take a file of articles on a specific topic and replace a specific word or group of words (i.e. dog, dog food, organic dog food etc.) with a link to a web page. However I would like to do this sequintially from a file of the links I want to post.

So I would replace every instance of "dog food" in a group of articles with a different link from a list in a single file.

Is this possible and how would I go about accomplishing this?

Thanks,
Smiley

Abacre
Site Admin
Posts: 1223
Joined: Mon Jan 31, 2005 5:32 pm

Re: Question About Sequintial Changes

Post by Abacre »

Please give us a couple of examples: source text, text of links, resulting text after replace.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

Smiley
Posts: 2
Joined: Sat Oct 27, 2007 5:52 pm

Re: Question About Sequintial Changes

Post by Smiley »

Hi Roman,

The source text would be an article(s) all in a single folder, (I have as many as 100 articles for a few sites) I have written to promote my site. A simple example would be:
Dog Food
Mans best friend needs quality dog food. There are many nutrients required to keep your dog healthy. I sell high quality dog food. My dog food prices are the best on the planet!
I would have the link to every page on my site in a single file and the links would look like this:
Now what I hope is possible is to randomly or sequintially replace a word or term, in this case "dog food" in the article with a different link for each instance of the chosen term. I would like to be able to do this with a large group of files (100 or so articles) at one time. My aticle would then look like this:
http://www.dogfood.com/dog-food.html
Mans best friend needs quality http://www.dogfood.com/organic-dog-food.html$ANCHOR$dog food$ANCHOR$. There are many nutrients required to keep your dog healthy. I sell high quality http://www.dogfood.com/dog-food-nutriti ... ANCHOR$dog food$ANCHOR$. My http://www.dogfood.com/how-to-care-for- ... tml$ANCHOR$ dog food$ANCHOR$ prices are the best on the planet!
The result would be that when I post the article to my blogs using the posting sofware I have, they would still read correctly but have the links interspersed with the text for better spidering by the search engines. The result would look like this once posted to the blog with the underline representing a link.
Dog Food
Mans best friend needs quality dog food. There are many nutrients required to keep your dog healthy. I sell high quality dog food. My dog food prices are the best on the planet!

I'm not very technically adept and I hope that I have explained myself well enough for you to understand. I almost forgot, I am working with .txt files exclusively.
Thanks so much
Larry

Post Reply