RegEx on MAC doesn't work

Hi Community,

column “Location” contains the value “/Users/admin/Documents/garbage-classification/paper/Row1625.jpg” in the String Manipulation Node I’m using the expression substr($Location$, 45, lastIndexOfChar($Location$, '\\' )) to extract the values. But the new column which is created is empty. On Windows it’s working fine.

Can someone help?

BR,
Sven

I don’t see a backslash in the sample value you provided - what do you expected to be the result of the String Manipulation node’s action on this value?

2 Likes

Problem solved: substr($Location$, 45, lastIndexOfChar($Location$, '\/' )) is the correct expression.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.