Page 1 of 1

@wreplace(%eq,"* *", "*")

Posted: Tue Nov 24, 2015 5:12 am
by tvonbrasch
Hi

I have a number of equations/strings with the following format: BPAV84 = w84 * * 0.377427 * PU84 * * 0.00832 * pM84 * * 0.614253

I want to make a code that replaces the * * with one * only. I tried:
%eq="BPAV84 = w84 * * 0.377427 * PU84 * * 0.00832 * pM84 * * 0.614253"
string eq2=@wreplace(%eq,"* *", "*")

but it does not work, probably because * is a wild card operator...?

Can you please help me?
Thomas

Re: @wreplace(%eq,"* *", "*")

Posted: Tue Nov 24, 2015 8:58 am
by EViews Gareth
Use @replace, not @wreplace