Replace does not work as expected on strings
Posted: Tue Oct 20, 2020 6:33 am
Dear All,
how should replace work on strings? Please consider the following code:
wfcreate(wf="file") a 1 10
series foo_1=1
series bar_1=2
group _bar bar_*
%sn_bar=_bar.@seriesname(1)
%sn_foo=@replace(%sn_bar,"bar","foo")
group __result {%sn_foo} {%sn_bar}
The group "__result" should contain the series "foo_1" and "bar_1", instead of "bar_1" and "bar_1". Is this a bug?
Thank you!
skan
how should replace work on strings? Please consider the following code:
wfcreate(wf="file") a 1 10
series foo_1=1
series bar_1=2
group _bar bar_*
%sn_bar=_bar.@seriesname(1)
%sn_foo=@replace(%sn_bar,"bar","foo")
group __result {%sn_foo} {%sn_bar}
The group "__result" should contain the series "foo_1" and "bar_1", instead of "bar_1" and "bar_1". Is this a bug?
Thank you!
skan