C# – String.Remove Ex.
int j = 4;
string pages = "/.././ewcwe/";
pages = pages.Remove(j, 2);
// pages = "/../ewcwe/";
// delete ./
Is there such a function in python string.remove?
sorry, **./** -> ./
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Strings are immutable, so you need to extract the parts you want and create a new string from them:
Alternatively you can overwrite the existing string (as pointed out in the comment below):