In reply to dave_59:
Hi Dave,
thanks for your answers,i have another question regarding regular expressions in systemverilog.
Is it possible to extract a group (%1,%2 …) from the regular expression to another string?
I mean if you have: “abc(de)fg” and you want just “de” using regular expressions in another string how would you do this?. (please assume that the regular expressions are needed because of a complex string)
I know that we have str.substr(startposition, endposition); to extract strings, maybe that can be done somehow with that function using a loop. “uvm_re_match(re, name);” does not provide you the index of the match which would be very helpful.
Looking forward your answer