const
str1 = 'a_b_c';
var
temp: String;
no: integer;
begin
temp := 'a_b_c_';
no := Pos(str1, temp);
if no = 0 then
begin
showmessage('a_b_c都没有,不用找了');
exit;
end;
temp := Copy(temp, no + Length(str1), Legth(temp));
if Pos('_', temp) <> 0 then
showmessage('在后面')
else
showmessage('不在后面');
end;