String "check me please"
Regular (check) (me)
those. about MATCH, one should go in match[1] , the other in match[2] , it says that the regular does not find anything at all, here’s a sample:
procedure TForm1.Button1Click(Sender: TObject); var test1:string; t:TRegExpr; begin test1:='check me please'; t:=TRegExpr.Create; try t.Expression:='(check)(me)'; t.InputString:=test1; if t.Exec then begin repeat showmessage('match[1]= '+t.Match[1]+' match[2]= '+t.Match[2]); until not t.ExecNext; end else showmessage('а нет ничего'); finally t.Free; end; end; what's wrong?
(check)(me)(without a space between words) should catchcheck me please(with a space) - alexlz