Do a regular expression replace instead of exact string search and replace.
Merge pull request #98 from JamesBromberger/python

Do a regular expression replace instead of exact string search and replace