Split Using Regex Python String Replace Substring Php