Re: word replacing in a paragraph

2014-01-06 Thread Jean-Michel Pichavant
- Original Message - > Hey guys, > I'm trying to automate a process by initially creating a standard > template and then replace some text fields with variable values. > [for example, "DATE" in the paragraph will be replaced by the current > date value. it doesn't have to be a literal

Re: word replacing in a paragraph

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 1:01 AM, Frank Cui wrote: > I'm trying to automate a process by initially creating a standard template > and then replace some text fields with variable values. > > [for example, "DATE" in the paragraph will be replaced by the current date > value. it doesn't have to be a li

Re: word replacing in a paragraph

2014-01-06 Thread leo kirotawa
Since it is for a template you can round the keyword to be replaced , something like $data$ and then just string.replace('$data','1234') On Mon, Jan 6, 2014 at 12:01 PM, Frank Cui wrote: > Hey guys, > > I'm trying to automate a process by initially creating a standard template > and then rep

Re: word replacing in a paragraph

2014-01-06 Thread David Froger
Quoting Frank Cui (2014-01-06 15:01:25) > Hey guys, > > I'm trying to automate a process by initially creating a standard template and > then replace some text fields with variable values. > > [for example, "DATE" in the paragraph will be replaced by the current date > value. it doesn't have to b

word replacing in a paragraph

2014-01-06 Thread Frank Cui
Hey guys, I'm trying to automate a process by initially creating a standard template and then replace some text fields with variable values. [for example, "DATE" in the paragraph will be replaced by the current date value. it doesn't have to be a literal word of "DATE", "DATE" in "TESTDATE" can