Using Variable In Regex Python Documentation String Methods In C