perl -n -we "print if s/Twist 1// .. s/Twist 2// && ! /Twist \d/" text.txt