In Adobe Lightroom a Plug-in is written in Lua. In an attempt to teach myself Lua I am working myself through the SDK producing own Plug-ins.
Now I came accross a situation where I am getting a string from a table named ‘images’ like this:
images[1] = "d:\Windows\Temp\LREXPORT\NK119542.tif"
But of course Lua does not like those unescaped backslashes at all. The content of this table varies depending on the user action. I am thinking of a solution to grab that string and manipulate it for further processing.
Correct strings would be:
newimages = "d:/Windows/Temp/LREXPORT/NK119542.tif"
newimages = "d:\\Windows\\Temp\\LREXPORT\\NK119542.tif"
Went through lots of posts and online tutorials but sorry, I was not able to figure this one out.
Hope there is a solution, thanks for replies.
if your fine with forward slashes, why not just replace them:
Same goes if you think doubling them will help you: