Wildcard find & replace??
Posted: Mon Jan 31, 2005 5:32 pm
I need to replace a large number of lines in a program I'm writing that are similar, but have differing values. For instance:
I need to replace all occurences of:
MyVar1 = '*';
MyVar2 = *;
with:
myFunc1 ('*', *);
So that the resulting code reads:
Does that make sense, and is it possible to accomplish with AFR? If so I'll buy the program in a heartbeat Alert Wildcard does this, but I like AFR a lot better overall.
Code: Select all
function hello ()
{
MyVar1 = 'testvalue';
MyVar2 = SUPER[1];
}
MyVar1 = 'value2';
MyVar2 = AnotherVar;
I need to replace all occurences of:
MyVar1 = '*';
MyVar2 = *;
with:
myFunc1 ('*', *);
So that the resulting code reads:
Code: Select all
function hello ()
{
myFunc1 ('testvalue', SUPER[1]);
}
myFunc1 ('value2', AnotherVar);
Does that make sense, and is it possible to accomplish with AFR? If so I'll buy the program in a heartbeat Alert Wildcard does this, but I like AFR a lot better overall.