Hi everyone,
i have one queue of string, i want to remove "anything which start with UVM ". for example UVM_VERBOSITY,UVM_TESTNAME etc.
i know how to do it using perl because it supports regular expression very well. but in Systemverilog regex does not support that much (at least in vcs, ignore it).
module tb;
initial begin
string test_queue[$]={"xyz","abc","UVM_VERBOSITY","UVM_TESTNAMES","systemverilog"};
$display(" Q : %p",test_queue);
end
endmodule
Output :
Q : '{"xyz", "abc", "UVM_VERBOSITY", "UVM_TESTNAMES", "systemverilog"}
i want Q : '{"xyz", "abc", "systemverilog"}
can you help me how to procced , to remove them.
Thanks,
Alok