Skip to main content
Question

StringReplacer bug?

  • October 8, 2021
  • 1 reply
  • 39 views

jatoxa
Contributor
Forum|alt.badge.img+12

Hi all,

When I try to replace "back slash" in a directory path to "forward slash" it works in all but the last occurence. Tried with Regex as well.

Since I'm passing the path to a PythonCaller where I have to use double forward slash I get output similar to this: "C://Folder//AnotherFolder//3rdFolder/lastfolder".

 

 

I tried using AttributeSplitter and ListConcatenator and use // as delimiter.

The output is the same and the last occurence doesn't have double forward slash: "C://Folder//AnotherFolder//3rdFolder/lastfolder".

 

Is there some fundamental logic to this I'm not familiar with or is it a bug?

Also I run the 2021.2 Beta, don't know if it could have anything to do with that.

 

Thanks!

1 reply

jatoxa
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • October 8, 2021

I just noticed that since I have my path as a published parameter it changes the last occurence of back slash to forward slash automatically when I run the workspace. This explains the above mentioned behaviour so it's not a bug.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings