- のような空白や文字を無視して、文字列 1 で見つかった場合、一致する部分文字列を削除する必要があります。
私が持っている例は次のとおりです。
string 1="The LawyerWhat happened to A&O's first female partner?The LawyerWhen Clare Maurice was made up at Allen & Overy (A&O) in 1985 she was the sole female partner at the firm. Twenty-five years later, gradual change in the";
文字列 1 の下の文字列 2 を一致させ、文字列 1 から削除する必要があります。
string 2="What happened to A&O's first female partner? - The Lawyer";
どうもありがとう