| Main Archive Page > Month Archives > postfix-users archives |
Hi All
I need to replace all occurences of "text1" in mailbody with "text2".
The regexp =>
/^(.*)text1(.*)$/ REPLACE $1text2$2 works if there is only one
occurence of "text1" in a line.
It changes only the last occurence of "text1" in a single line which
has multiple occurences of "text1" in the same line.
Kindly advise how to replace "text1" with "text2" for multiple
occurences of "text1" in the same line
Regards
Varad Gupta