in reply to Re^2: Set the flag
in thread Set the flag

The above code is replacing every <p> with <con>.

No, just the first. You'd need to add /g to make it replace every instance.

You said you needed to search the file. You aren't searching every line, right?