Const
S: string = 'asdfg(1234)fghnbg';
Begin
writeln(copy(S,pos('(',S)+1,pos(')',S)-(pos('(',S)+1)));
End.
Следующий вариант
Const
S: string = 'asdfg(1234)fghnbg';
Begin
writeln(copy(S,1,pos('(',S)-1)+copy(S,pos(')',S)+1,length(S)));
End.
Const
S: string = 'asdfg(1234)fghnbg';
Begin
writeln(copy(S,pos('(',S)+1,pos(')',S)-(pos('(',S)+1)));
End.
Следующий вариант
Const
S: string = 'asdfg(1234)fghnbg';
Begin
writeln(copy(S,1,pos('(',S)-1)+copy(S,pos(')',S)+1,length(S)));
End.