If I have two lines. let's say
string1 = "Hello Dear c'Lint"
and
string2 = "Dear"
.. I want to compare the strings and remove the matching substring ..
result of the above pairs of lines: i>
"Hello c'Lint"
(i.e. two spaces between "Hello" and "c'Lint"). For simplicity, we assume that string2 will be a subset of string1 .. (i means that string1 will contain string2).
string string-matching c #
InfantPro'Aravind '
source share