I have the following Regexp :
regexp=/(\w+) \s* : \s* (\w+) \s+ (.*) \s* ;?/ix
And I am trying to get the captures:
names, direction, type = iotext.match(regexp).captures
This works fine for a single "x : in integer;" ,
but how could I also get all the groups of other match data in my file :
"x : in integer;
y : in logic;
z : in float;"