name value { test 1; test 2; test 5; } name three { eat 4; eat 5; } #### $str =~ /name(.*)name/