How To Input A Regex In String Replace With Python

How To Input A Regex In String Replace With Python