in reply to Splitting string using two overlapping patterns
while ($str =~ m/{(.+?)}|([\w:]+)/g) { print $+; } [download]