Use of regular expression for string comparison

In reply to dave_59:

Awesome! That code actually worked. Thank you.

   initial
   begin
      automatic bit error_code;
 
      //re = uvm_glob_to_re(re);
      error_code = uvm_re_match(re, name);
 
      if(error_code == 0)
         $display("Match Detected");
      else
         $display("Match not Detected");