Page 1 of 1
dumb question about the treating an asterisk as an asterisk -- not a wildcard
Posted: Wed Jan 24, 2018 8:37 am
by jbonanca
I have a string with elements like:
WALMEX*_MM
Forgive the dumb question, but how do I write a line that will get rid of that asterisk?
Re: dumb question about the treating an asterisk as an asterisk -- not a wildcard
Posted: Wed Jan 24, 2018 9:25 am
by EViews Gareth
Code: Select all
%a = "WALMEX*_MM"
%b = @replace(%a, "*", "")
Re: dumb question about the treating an asterisk as an asterisk -- not a wildcard
Posted: Wed Jan 24, 2018 11:36 am
by jbonanca
Thank you Gareth. Now I feel especially idiotic. I thought I had tried something like that to no avail. At the risk of feeling yet more foolish, why is that asterisk not read as a wildcard? Thanks vm again.
Re: dumb question about the treating an asterisk as an asterisk -- not a wildcard
Posted: Wed Jan 24, 2018 11:57 am
by EViews Gareth
Because @replace doesn't accept wildcards.