grep -Po "(?<=\\word{)[^}]*(?=})" << EOFThis \word{is} some text.This is some \word{more text}.\word{This} is \word{yet} some more \word{text}.EOF
Standard input is empty
is more text This yet text
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!