#!/bin/bashs='xblahxxblahxxblahblahx'sed 's/x\([^x]*\)x/<\1>/g' <<< "$s"
Standard input is empty
<blah><blah><blahblah>
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!