in reply to minimal greed, revisited
When you're dealing with data in a repeated format like this, something like a split might be more appropriate:
That's not pretty, but it's more likely to get you to your solution way before you can craft a regex that'll do what you mean.my @fields = split(/\w+: /, $source); my $field2 = join @fields[3 .. 5];
|
|---|