@wreplace(%eq,"* *", "*")
Posted: Tue Nov 24, 2015 5:12 am
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
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