my @blocks = $file_contents =~ /:\w(?:(?!:\w).)*?type\s*=(?:(?!:\w).) +*?(?=:\w)/sg; [download]
In reply to Re^4: grabbing chunks of text by spencerd in thread grabbing chunks of text by spencerd