【问题描述】
编写程序将一行英文中指定的字符串删除后输出。注意:查找指定字符串时,大小写无关,而且有可能多次出现。
【输入形式】
先从标准输入中输入一指定字符串(其长度不超过20,该字符串中不会出现空格),然后在下一行输入一行英文(长度不超过200),行末有回车换行。
【输出形式】
将输入的英文删除指定字符串后输出到标准输出上,末尾应有一个回车换行;若删除后英文为空,则只输出一个回车换行。
【样例1输入】
th
This second edition of “The C Programming Language” describes C as defined by the ANSI standard. Modern compilers already support most features of the standard.
【样例1输出】
is second edition of “e C Programming Language” describes C as defined by e ANSI standard. Modern compilers already support most features of e standard.
【样例2输入】
This
THIS
【样例2输出】
【样例说明】
样例1中输入的指定字符串为th,由于是大小写无关查找删除,所以下一行英文信息中有四个子串要删除:Th、Th、th和th,删除后其它信息原样输出。
样例2中输入的指定字符串为This,输入的英文信息为THIS,大小写无关查找删除后英文信息为空,所以只输出了一个回车换行。