# If you'd like to omit non-matching lines from the result; add ';d' to the end of the expression.
sed -E 's/.*"email":"(.*?)".*emailActivationSecret":"(.*?)".*"_id":"(.*?)".*/webserver-wat:3001\/activateAccount?email=$1&secret=$2&companyId=$3/gm;t' <<< "\"__v\":0,\"language\":\"en\",\"jobTitle\":\"Executive\",\"firstName\":\"wer\",\"lastName\":\"wre\",\"email\":\"fde+98989@gmail.com\",\"phone\":\"+1 213-321-3232\",\"_companyId\":\"5723erera8b2196fdaer9502b86dc7\",\"accountStatus\":\"UNVERIFIED\",\"role\":\"ADMIN\",\"emailActivationSecret\":\"XD1EererreQyVLFn1IjJg7QQNcDz9RLZ1xrKnl84XI5Nb5\",\"_id\":\"5723a8b21er96fwereeda9ewree502b86dc8\",\"products\":[],\"created\":\"2016-04-29T18:32:18.700Z\"}
"
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for SED, please visit: https://www.gnu.org/software/sed/manual/html_node/The-_0022s_0022-Command.html