In reply to shaygueta:
uvm_re_match uses the POSIX function regexec() to perform a match, not PERL. See regcomp
Tools that have the UVM pre-compiled do not have UVM_REGEX_NO_DPI set, but you could easily write a simple test with your own `ifdef.
If your file contains only list of values, you can use $fscanf/$sscanf to read one value at a time.