I have a use case where the output of my previous command is like this.
external_tool | grep -iE "id1 | id2" Output of above command is Z55Hsh1a