Ye, thats what I've been doing. But it is a large word-replace list and large paragraph.
Just thought there might of been a way with less lines used :D
and I don't quite understand the re module
A Regular Expression (re), has it's own language. A VERY simple example would be a sub-string followed by any whitespace (pure Python could easily do this to, but "regex"s, as they are called go much further):
- >>> import re
-
>>> s = "That man is good but he ain't no superman"
-
>>> reObj = re.compile("man\s")
-
>>> reObj.sub("guy ", s)
-
"That guy is good but he ain't no superman"
-
>>>
Just thought I'd throw that out there.