use strict; my $test = '
ONE
TWO features:
)(.+(?!
))(features\:
## 1: 2: ONE TWO 3: features:
2: ONE
TWO 3: features: