uses PerlRegEx;
function CheckSortKey(SortKey:string):Boolean;//验证排序数字字符串
var
PerlRegEx: TPerlRegEx;
begin
PerlRegEx := TPerlRegEx.Create(nil);
PerlRegEx.Subject := SortKey;
PerlRegEx.RegEx := ‘^\d{10}$‘;
Result := PerlRegEx.Match;
PerlRegEx.Free;
end;