Please help: Replace a random string

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

User avatar
Russia
Posts: 3
Joined: Fri May 10, 2013 4:04 am

Please help: Replace a random string

Postby Russia » Fri May 10, 2013 4:55 am

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: 2154
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Please help: Replace a random string

Postby DataMystic Support » Mon May 13, 2013 9:49 am

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 301 times
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

User avatar
Russia
Posts: 3
Joined: Fri May 10, 2013 4:04 am

Re: Please help: Replace a random string

Postby Russia » Mon May 13, 2013 11:57 pm

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 306 times
I apologize for my English, write through the site translate.google.com

User avatar
DataMystic Support
Site Admin
Posts: 2154
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Please help: Replace a random string

Postby DataMystic Support » Tue May 14, 2013 8:47 am

Ok, please find a correct filter attached.
Attachments
my_randomly v2.zip
(865 Bytes) Downloaded 287 times
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

User avatar
Russia
Posts: 3
Joined: Fri May 10, 2013 4:04 am

Re: Please help: Replace a random string

Postby Russia » Tue May 14, 2013 12:04 pm

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


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 3 guests