Good day. It is necessary to check whether the line begins with the words "Work in the Internet?" , if yes, then the first 3 words should be removed from the line, i.e., it is necessary to remove this phrase “work in the Internet”. So far I have solved the second part of the problem. I.e deleting all the characters before the "?"
procedure TForm1.Button3Click(Sender: TObject); var s , n , text: String; position: Integer; begin text:=Edit1.Text; position := pos('?', Edit1.Text); If position <> 0 then S := copy(Edit1.Text, position, length(Edit1.Text) - position + 1); end;
But here's how to check whether the line begins with the words "Work in the Internet?" or is there another question I do not think ..