[[re.sub]]を使う。 ```python >>> import re >>> re.sub("[a-z]+", "xxx", "ab12cd34e") 'xxx12xxx34xxx' ```