Suppose I have a code mentioned below.
module dut#(parameter type tp =int, tp x = 12 ) (int r , reg [7:0] rg);
endmodule
module mid (int r, reg [7:0] rg);
endmodule
module bin (int z, logix s);
endmodule
module med;
endmodule
I want to extract the words dut, mid, bin and med, characterized by being the words after the keyword module and before the symbol #, ( or ;, whichever comes first.
I want to accomplish this using only a csh script. Which regex can be used for that purpose?
medinmodule med;according to the answer you accepted? – αғsнιη Jan 21 '21 at 10:33