I'm pretty sure you need two calls to re.sub. This isn't a Python issue so much as a regular expression issue, and as far as I know this isn't possible.
Some results have been hidden because they may be inaccessible to you
Show inaccessible resultsSome results have been hidden because they may be inaccessible to you
Show inaccessible results