I need to delete text between characters (two options). Text of this type:
TEST """111111> TEST1 TEST """222222>> TEST2 TEST """333>>> TEST3 TEST "444444>>> TEST4 TEST ""5555>>> TEST5 To get the output:
Option 1 (Only text and symbols leave):
TEST """> TEST1 TEST """>> TEST2 TEST """>>> TEST3 TEST ">>> TEST4 TEST "">>> TEST5 Option 2 (Inclusive with characters):
TEST TEST1 TEST TEST2 TEST TEST3 TEST TEST4 TEST TEST4 Specification: It is meant to delete the text between:
""" ΠΈ ΡΡΠΈΠΌ > """ ΠΈ ΡΡΠΈΠΌ >> """ ΠΈ ΡΡΠΈΠΌ >>> " ΠΈ ΡΡΠΈΠΌ >>> "" ΠΈ ΡΡΠΈΠΌ >>> Option 1 - leave characters and delete only text between characters.
Option 2 - delete characters and text that is between characters.
After processing the code that I have here:
// In edit I specify between what and with what to delete
Len := Length(S); Pos1 := 0; for P := Len downto 1 do begin if (S[P] = edit3.text) and (Pos1 = 0) then begin Pos1 := P; end; if (S[P] = edit2.text) and (Pos1 <> 0) then begin Delete(S, P, Pos1 - P + 1); Pos1 := 0; end; I get this result (That is, some of the characters remain):
TEST "" TEST1 TEST "" TEST2 TEST "" TEST3 TEST TEST4 TEST " TEST5
TEST T>ES_T2 TEST4what needs to be removed from here? Formulate removal requirements - Anton Shchyrov