1
How would a regex capture the block of declosed variables in a Delphi unit ?
The closest I’ve come to this is using this var[^=]*[^\)];
but without success.
var
Variavel1 : string;
Variavel2, Variavel3: integer;
Variavel4,
Variavel5 : THandle;
function Soma(a, b: integer): integer;
var
Varivel1: integer;
Variavel2, Variavel3: integer;
begin
//...
end;
Any solution to identify variables is welcome.
What exactly do you expect to return from this example block that you have provided?
– vmartins
Only the same variables... would be +- as in this post http://answall.com/questions/77831/regex-para-capture
– Mutha