Replace Using Regex Python Documentation Functions In R