In reply to MayurKubavat:
The value returned by uvm_re_match is an error code from regexec. So 0 is in fact successful.