Python Regex Replace Efficient String Manipulation

Python Regex Replace Efficient String Manipulation