There is a list of strings:
123456:Ответ 1234:Ответ-1008! 1234567:Ответ-232! 12345:Отв It is necessary to exclude lines in which, if after the sign: or; - less than 3 characters. And write down all the lines in which after the sign: or; - characters greater than 3.
In this case, the result should be:
123456:Ответ 1234:Ответ-1008! 1234567:Ответ-232! It seems to be moving in the right direction, but alas, it does not work.
if (PosEx(':', stroka)=0) or (PosEx(';', stroka)=0) and (length(stroka) <3)
if ( (length(stroka)-PosEx(':',stroka)<3)), further on. - Vladimir Klykov123456:Ответafter a colon of as many as 5 characters, why is it not as a result? - teran