On 5/22/2012 10:33 AM, varad gupta wrote:
> 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
>
I hope you are not trying to implement a poor man's language filter.
If so, you will probably run into a clbuttic (read: classic with poor
filter) example of what not to do.

Brian

Reply via email to