in reply to @ Regular Expression
my ($machine_class) = ($str =~ /MACHINE_CLASS=\s*(\w*)/); [download]