Split Text Using Regex Python String Replace Function In C