Page 1 of 1

Please help: Replace a random string

Posted: Fri May 10, 2013 4:55 am
by Russia
Good day to you all. I decided to try your program Tehtpipe but I can not understand how to do to be able to find a specific word in the text and replace it with a random word from a list of words. I tried to understand, but unfortunately could not.

If I do not write very clear, here is an example. There is a text:
one time two three time four five time six time seven eight time nine ten time
It is necessary to replace the word "time" on a random word from this list:
minute
hour
day
week
month
year
To the result was something like this:
one hour two three month four five day six hour seven eight minute nine ten minute
Or at least that it was possible the word "time" to replace the words in the list is not by chance, but in turn (in order). That is, words are used to replace the list only once. To the result was something like this:
one minute two three hour four five day six week seven eight month nine ten year

Re: Please help: Replace a random string

Posted: Mon May 13, 2013 9:49 am
by DataMystic Support
Please see the attached filter - just change the search/replace to look for 'time' instead of any word, and also change the search/replace list of 4 items in the VBScript filter to match your list.

Re: Please help: Replace a random string

Posted: Mon May 13, 2013 11:57 pm
by Russia
Thank Simon for your response. But unfortunately, I do not quite understand how to use this filter is applied to a word I say "time".

Can the same filter but with my word "time"?

P.S. - I tried to change the filter under my needs, but it does not work. Please see.

Re: Please help: Replace a random string

Posted: Tue May 14, 2013 8:47 am
by DataMystic Support
Ok, please find a correct filter attached.

Re: Please help: Replace a random string

Posted: Tue May 14, 2013 12:04 pm
by Russia
Thank you very much, Simon. This is exactly what I needed.