$re = '[spectal]{9}'; $qr = qr/$re/; # Compile the expression # qr() # regcomp() # Compile the expression # regcreset $data =~ $qr; # match() # regcomp() # Re-use the expression # regcreset $data =~ m/$qr/; # match() # regcomp() # Re-use the expression # regcreset