Vex: Fix Backslashes into Frontslashes

   174   1   0
User Avatar
Member
1010 posts
Joined: April 2017
Offline
Hi!

I've posted about this about 2 years ago and found the solution. Sadly, I'm getting into the same problem and the solution doesnt work this time.

I've got a path with backslashes that I want to convert with frontslashes. It's not working and I don't get why...

Here's the old post about it: https://www.sidefx.com/forum/topic/85105/ [www.sidefx.com]

Attachments:
Houdini_backslashes_01.JPG (62.2 KB)

User Avatar
Member
7794 posts
Joined: Sept. 2011
Online
backslash is the 'escape character' in several languages. if you want a literal backslash, it needs to itself be escaped with another backslash. depending on how many layers if indirection, it could take more than one extra backslash to get a literal backslash. I tend to start at two and use trial and error to find out how many it needs. wrangles need to put at least three or four in place of one to work, but it depends on how they get in the code.
  • Quick Links