Replace Text Problem (bug?)

Tool for Search and Replace across multiple files.
Post Reply
User avatar
Jose Manuel

Replace Text Problem (bug?)

Post by Jose Manuel »

find $_SESSION[id] -> replace with -> funcion($_SESSION[some])
cause, duplication code en my files.

ver. 1.1-2

Thanks.
User avatar
DV

Post by DV »

Using $_ in a replace expression causes a copy of the match to be inserted. This shouldn't happen in non-regex mode (and will be fixed in future versions)
As a workaround use a double dollar ($$) in the replace string and this should mean the dollar character is taken literally. Eg-

Find: $_SESSION[id]
Replace: funcion($$_SESSION[some])
User avatar
Jose Manuel

Post by Jose Manuel »

Thanks for your answer!
Post Reply