Given string input1, input2, remove wherever the occurrence of input2 in input1.
e.g:
input1: skjthshetheshetesm
input2: she
input1 will become "skjththetesm"
Code output:
Text: skjthshetheshetesm
Pattern: she
After removing pattern from text: skjththetesm
Text: abababa
Pattern: aba
After removing pattern from text: b
e.g:
input1: skjthshetheshetesm
input2: she
input1 will become "skjththetesm"
Code output:
Text: skjthshetheshetesm
Pattern: she
After removing pattern from text: skjththetesm
Text: abababa
Pattern: aba
After removing pattern from text: b
No comments:
Post a Comment