I have the following string:
https://example.com/get/ea34b8062cr2533eed0b4302e44d4090e26ae3c01bb1124292f3c970_1280.jpg
I want just remove the character s
from this part https
and return the whole string again but without s
character.
wxString imgURL = "https://example.com/get/ea34b8062cr2533eed0b4302e44d4090e26ae3c01bb1124292f3c970_1280.jpg";
imgURL.Remove(imgURL.find('s'));
this->m_textShowData->SetValue(imgURL);
Unfortunately, the previous code removes the s
character but doesn't return the whole string again but it returns http
only.
How to remove the character s
and then return the whole string without that character?
Just use the erase function:
imgURL.erase(4,1);