I'm not an expert with this, but this should work with your example:
%s/!(\(.*\)=\(.*\))!(\(.*\))/(\1)!(\3=\2)! On 3/15/07, Tien Pham <[EMAIL PROTECTED]> wrote:
Hi all I have a pattern for "search and replace" but I couldn't figure out how to do it correctly. I suppose my problem is so simple for many people, but it's not to me. Thus, help is very much appreciated. Existing pattern: !(All,r,ROW=gas)!(All,c,COL) !(All,r,ROW=water)!(All,c,COL) !(All,r,ROW=building)!(All,c,COL) What I need now is: (All,r,ROW)!(All,c,COL=gas)! (All,r,ROW)!(All,c,COL=water)! (All,r,ROW)!(All,c,COL=building)! Again, your help is greatly appreciated. tien