Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.037 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'automate': 0.07; 'literal': 0.09; 'template': 0.14; 'guys,': 0.16; 'hey': 0.18; 'variable': 0.18; 'trying': 0.19; 'value.': 0.19; 'to:name:python- list@python.org': 0.22; 'creating': 0.23; 'replace': 0.24; "doesn't": 0.30; "i'm": 0.30; 'libraries': 0.31; 'values.': 0.31; 'text': 0.33; 'there': 0.35; 'example,': 0.37; 'initially': 0.38; 'to:addr:python-list': 0.38; 'received:65.54': 0.38; 'received:65.54.190': 0.38; 'received:bay0.hotmail.com': 0.38; 'to:addr:python.org': 0.39; 'kind': 0.63; 'such': 0.63; 'lightweight': 0.84 X-TMN: [xg6q2qwTHjDTopqWnDATkx/eF4ztNtqy] X-Originating-Email: [ycui@outlook.com] Content-Type: multipart/alternative; boundary="_41e1dff9-41c8-45d2-b210-18c4a4835234_" From: Frank Cui To: "python-list@python.org" Subject: word replacing in a paragraph Date: Mon, 6 Jan 2014 11:01:25 -0300 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 06 Jan 2014 14:31:25.0383 (UTC) FILETIME=[FA87CD70:01CF0AEB] X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 44 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1389018754 news.xs4all.nl 2845 [2001:888:2000:d::a6]:39418 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:63281 --_41e1dff9-41c8-45d2-b210-18c4a4835234_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hey guys=2C I'm trying to automate a process by initially creating a standard template = and then replace some text fields with variable values. [for example=2C "DATE" in the paragraph will be replaced by the current dat= e value. it doesn't have to be a literal word of "DATE"=2C "DATE" in "TESTD= ATE" can also be replaced.] Is there some lightweight built-in or 3rd party libraries which are good f= or such kind of work ? ThanksFrank = --_41e1dff9-41c8-45d2-b210-18c4a4835234_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hey guys=2C

I= 'm trying to automate a process by initially creating a standard template a= nd then replace some text fields with variable values.

=
[for example=2C "DATE" in the paragraph will be replaced by the curren= t date value. it doesn't have to be a literal word of "DATE"=2C "DATE" in "= TESTDATE" can also be replaced.]

Is there some lig= htweight built-in or 3rd party  =3Blibraries which are good for such ki= nd of work ?

Thanks
Frank =3B
=
= --_41e1dff9-41c8-45d2-b210-18c4a4835234_--