That is different from what you asked for in the other thread: Set the flag! Which is it?
In reply to Re^6: search and replace by gmargo in thread search and replace by Anonymous Monk