Using @replace with wildcard
Posted: Fri Jun 03, 2011 9:56 am
Is it possible to use @replace string function with a wildcard? If not, does anyone have an idea how to do what I'm trying to do?
I am trying to strip off the path information so I have just the Eviews workfile name.
%wfpath = "C:\work\Eviews\q2fy10_sys.wf1"
%wf = @replace(%wfpath,"*\","")
I would expect replacement to remove all characters up to and including the last backslash so that %wf is equal to q2fy10_sys.wf1
Does not seem to work...
TIA
I am trying to strip off the path information so I have just the Eviews workfile name.
%wfpath = "C:\work\Eviews\q2fy10_sys.wf1"
%wf = @replace(%wfpath,"*\","")
I would expect replacement to remove all characters up to and including the last backslash so that %wf is equal to q2fy10_sys.wf1
Does not seem to work...
TIA