fork download
  1. #!/bin/bash
  2. s='object.word_to_extract123'
  3. grep -oP '(?<=object\.)\w+' <<< "$s"
  4. sed -nE 's/.*object\.([[:alnum:]_]+).*/\1/p' <<< "$s"
Success #stdin #stdout 0.01s 5432KB
stdin
Standard input is empty
stdout
word_to_extract123
word_to_extract123