Re: Update property value in file and retaining format.

2012-01-18 Thread Harold Putman
These are Regular Expression "metacharacters" ^ means start of line $ means end of line \1 is a "backreference" used in substitution. It means insert the first part of the pattern than matches. If you Google or look up a book on Regular Expressions you will find more complete explanations of thes

Re: Update property value in file and retaining format.

2012-01-18 Thread Nehal Patel
Nice, this was the solution! Frankly this is a bit more advanced that i know. I don't know the following: What the "^" means. What the "$" means. What the "\1" means. Thanks. On Mon, Jan 16, 2012 at 4:38 AM, Emma Burrows wrote: > You're replacing the entire "Test2=" line with the string > "tes