I want to search and replace the specified string with "module" in this line
ex. "apple" string in the line:
"happy applegg module banana tree" => "happy berrygg module banana tree"
sed 's/^((?=module).)*.*apple.*$/berry/g' filename >> newfile
^((?=module).)*$ => the positive look behind can fit the module, and .*apple.*$ can fit the apple
but it failed, how can I modify the sed command with regular expressions to do what I want?