Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calc with replace currently doing nothing #328

Closed
NicoLaval opened this issue May 20, 2024 · 2 comments
Closed

Calc with replace currently doing nothing #328

NicoLaval opened this issue May 20, 2024 · 2 comments

Comments

@NicoLaval
Copy link
Collaborator

NicoLaval commented May 20, 2024

@noahboerger you reported calc with replace currently doing nothing.

Could you precise please?

@NicoLaval NicoLaval added question Further information is requested Needs more information and removed question Further information is requested labels May 20, 2024
@noahboerger
Copy link
Collaborator

The example i have tested is from the BdI testcases the one under "string/pattern_replacement_3".

The following statement has not been doing the expected replacement, the calculated Text_2 was just the same as Text_1:
result:= ds1[ calc Text_2:= replace(Text_1,"[a|e|i|o|u]")];

When i adjusted it to use the replace operator without calc it was working as expected:
result := (replace(ds1[drop num_1],"[a|e|i|o|u]"))[rename Text_1 to Text_2];

@NicoLaval
Copy link
Collaborator Author

Related to #334

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants