in reply to Re^2: Split string only on regular expression matchin thread Split string only on regular expression match
my @got = $string_c !~ /^\w+\s+\w+$/ig ? () : split /\s/, $string_c; [download]