Search and Replace in a text.

Dong Ge harddong at 21cn.net
Fri Oct 1 06:44:50 CEST 2004


I'm a new beginner of Python. I want to convet  "Text 1" to "Text 2"
below. How to do it?

__
Dong Ge
2004.10.01

Text 1:
...
Layer: Tv-Frame
Flags: 0x0
Attr: 1
Focus Point: 0 0 0
Layer: Tv-pic
Flags: 0x2300
Attr: 1
Focus Point: 0 0 0
Layer: Tv-shell
Flags: 0x0
Attr: 1
Focus Point: 0 0 0
...

Text 2:
...
Layer: Tv-Frame
Flags: 0x0
Attr: Tv-Frame
Focus Point: 0 0 0
Layer: Tv-pic
Flags: 0x2300
Attr: Tv-pic
Focus Point: 0 0 0
Layer: Tv-shell
Flags: 0x0
Attr: Tv-shell
Focus Point: 0 0 0



More information about the Python-list mailing list