#!/bin/bashs='---------foo barmore foo bar---------'grep -Poz '(?s)-\R\K.*(?=\R-)' <<< "$s"
Standard input is empty
foo bar more foo bar
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!