pos定位右边位置copy拷贝给你个参考//提取字符串function SubString(aInputStr, aStr_L, aStr_R: widestring): string;var sPosB, sPosE: integer; Lwhtml, LwCstr_L, LwCstr_R: string;begin Result := ''; if Trim(aInputStr) = '' then Exit; Lwhtml := LowerCase(aInputStr); LwCstr_L := LowerCase(aStr_L); LwCstr_R := LowerCase(aStr_R); sPosB := Pos(LwCstr_L, Lwhtml) + Length(LwCstr_L); sPosE := PosEx(LwCstr_R, Lwhtml, sPosB); if (sPosB < sPosE) and (sPosE > 0) then Result := Copy(aInputStr, sPosB, sPosE - sPosB);end;