Hello,
I want to delete or remove a part of a string?
I need to write a method or do something which will read the str1 and str2. when it finds the str2, it will delete it from str1 and update the str1.
To be more clear,
Lets say I have:
string str1 = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book."
string str2 = "Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, "
The final string should be;
str1 = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book."";
I cant use substring method because str2 can change because of the input string.