#!/bin/bashs='object.word_to_extract123'grep -oP '(?<=object\.)\w+' <<< "$s"sed -nE 's/.*object\.([[:alnum:]_]+).*/\1/p' <<< "$s"
Standard input is empty
word_to_extract123 word_to_extract123
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!