Please help: Replace a random string

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
Russia
Posts: 3
Joined: Fri May 10, 2013 4:04 am

Please help: Replace a random string

Post 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
I apologize for my English, write through the site translate.google.com
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Please help: Replace a random string

Post 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.
Attachments
sprinkle text randomly.zip
(1.2 KiB) Downloaded 575 times
Russia
Posts: 3
Joined: Fri May 10, 2013 4:04 am

Re: Please help: Replace a random string

Post 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.
Attachments
my_randomly.zip
(895 Bytes) Downloaded 583 times
I apologize for my English, write through the site translate.google.com
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Please help: Replace a random string

Post by DataMystic Support »

Ok, please find a correct filter attached.
Attachments
my_randomly v2.zip
(865 Bytes) Downloaded 559 times
Russia
Posts: 3
Joined: Fri May 10, 2013 4:04 am

Re: Please help: Replace a random string

Post by Russia »

Thank you very much, Simon. This is exactly what I needed.
I apologize for my English, write through the site translate.google.com
Post Reply