[CCing geany devel list, using the address I'm subscribed with to avoid moderation]
On Tue, Dec 15, 2009 at 10:45:25PM +0000, Ximin Luo wrote: > Damián Viano wrote: > > I used a text file with (created with echo 'try to replace me \t' > > >test_file): > > > > try to replace me \t > > > > [snip: me seeing only the third case stated here] > > My mistake; "Use regular expressions" needs to be on. I see, I can reproduce it now. But there's more to it, > In "try to replace me with \t", with Find = "me": This is the result with: "Use regular expressions" ON "Use escape sequences" OFF > Replace = "\t" replaces "me" with a tab > Replace = "\\t" replaces "me" with a backslash followed by a tab > Replace = "\\\t" replaces "me" with two backslashes followed by a tab "Use regular expressions" ON "Use escape sequences" ON Replace = "\t" replaces "me" with a tab Replace = "\t" replaces "me" with a tab Replace = "\\t" replaces "me" with a backslash followed by a tab > The correct behaviour (iirc) is to escape "\\" into "\"; so that: "Use regular expressions" OFF "Use escape sequences" ON > Replace = "\t" replaces "me" with a tab > Replace = "\\t" replaces "me" with the literal string "\t" > Replace = "\\\t" replaces "me" with a backslash followed by a tab Let's hear Enrico's , Frank's and/or Nick's (upstream authors) on this. Thanks for your report and follow-up Ximin. Damián. _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel