Replace Text? How to Replace Specific Text
2014-07-14, 03:20 PM, (This post was last modified: 2014-07-14, 03:21 PM by dahilan01.)
#1
Hello guys I just want to know how I can replace a specific text..

example I have 100 Names..

Dear "Text to be replace"
I just want to confirm bla bla bla..

Thank you..

Then save it to word,text or csv file..

so the result would be 100 copy of this letter

Dear "Different Names"
I just want to confirm bla bla bla..

Thank you

I hope someone can help me.. Thank you

How much you can take and keep moving forward.
That's how winning is done!

Reply
2014-07-14, 08:02 PM,
#2
Are you using an email marketing software for this?
If so, usually they have variables for those kind of things.
Reply
2014-07-14, 08:04 PM,
#3
Microsoft Word can do this job for you.
Reply
2014-07-14, 08:20 PM,
#4
Check if notepad++ do this job for you. You need the expression.

[Image: ytsrcpae_500x90.jpg]
Reply
2014-07-14, 08:42 PM,
#5
Try this wildcard query in msword

Dear (*?)^13

^13 is a line break.

Put that in the "Find what" field and make sure you select the "Use wildcard" checkbox (More>>).

This will find all occurrences of "Dear namehere". For instance, Dear xxxx, Dear yyyy etc.,

HTH
Latest Thanks - View all

dahilan01(2014-07-14 08:59 PM) 
Reply
2014-07-15, 12:15 PM, (This post was last modified: 2014-07-15, 12:36 PM by dahilan01.)
#6
(2014-07-14, 08:42 PM)imtaurus Wrote: Try this wildcard query in msword

Dear (*?)^13

^13 is a line break.

Put that in the "Find what" field and make sure you select the "Use wildcard" checkbox (More>>).

This will find all occurrences of "Dear namehere". For instance, Dear xxxx, Dear yyyy etc.,

HTH

I got this result

[Image: jlsmwxD.png]

I want the result to be.. like this

Dear xxx,

Dear yyy,

Dear zzz,

To make it more clear, let say
I have a letter template like the one below


Quote:Hello $Name$,

I would like to invite you to...

Thank you

Then I have a list of name,
example:
Quote:Name1
Name2
Name3
Name4

and the result would be..

Quote:Hello Name1,

I would like to invite you to...

Thank you

Hello Name2,

I would like to invite you to...

Thank you

Hello Name3,

I would like to invite you to...

Thank you

Hello Name4,

I would like to invite you to...

Thank you

How much you can take and keep moving forward.
That's how winning is done!

Reply
2014-07-15, 02:05 PM,
#7
(2014-07-15, 12:15 PM)dahilan01 Wrote:
(2014-07-14, 08:42 PM)imtaurus Wrote: Try this wildcard query in msword

Dear (*?)^13

^13 is a line break.

Put that in the "Find what" field and make sure you select the "Use wildcard" checkbox (More>>).

This will find all occurrences of "Dear namehere". For instance, Dear xxxx, Dear yyyy etc.,

HTH

I got this result

[img]/jlsmwxD.png[/img]

I want the result to be.. like this

Dear xxx,

Dear yyy,

Dear zzz,

[Image: B3ONmlw.png]

The wildcard query FINDS ALL OCCURRENCES. It does not replace and as far as I have used these wildcards, it could only be used to replace all the occurrences with ONE SPECIFIC REPLACE TEXT and not multiple REPLACE TEXT(s).

You will probably need to write a macro to achieve what you are trying to accomplish. From the template you have provided, seems like it should be possible by using Mail Merge in MSWord ( Which I suck at, sorry ).

HTH
Reply
2014-07-15, 04:41 PM,
#8
Or you can just make it with php after you replace all names with one variable, like that:

Use the method that imtaurus told you, and replace all names with $newName
Then in php make an array list with all your names, then for each item in array have the text you want :)
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Question]Regarding on targeting a specific country for traffic. urielD3 2 518 2016-11-24, 11:27 AM
Last Post: urielD3
  How do you change the offers text size for a cpagrip URL locker? Fridge 4 586 2016-06-03, 11:17 PM
Last Post: Fridge
  CPA Grip Content Locker - How do I move the offers text up or down? Fridge 7 995 2016-05-17, 04:57 PM
Last Post: Fridge
  ANNOUNCEMENT [MONSTER] CPA MARKETING TOOLBOX [VIDEOS AND TEXT GUIDES] HawkEye 0 18,562 2016-03-29, 07:00 PM
Last Post: HawkEye
  Password Text inside a Zip file - What would The Referrer Be? Anonymously 0 397 2016-02-23, 02:41 PM
Last Post: Anonymously





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top