Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7515255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:44:53+00:00 2026-05-30T00:44:53+00:00

In Adobe Lightroom a Plug-in is written in Lua. In an attempt to teach

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T00:44:55+00:00Added an answer on May 30, 2026 at 12:44 am

    if your fine with forward slashes, why not just replace them:

    images[i]=images[i]:gsub("\\","/")
    

    Same goes if you think doubling them will help you:

    images[i]=images[i]:gsub("\\","\\\\")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to make Qt app look in Adobe Lightroom style? Is it skin or
From Adobe docs: labs.adobe.com/technologies/flex/mobile/faq.html#differences it looks like with present SDK (4.5 Hero ) only
The Adobe Acrobat browser plug-in is being used to accept form input from a
Adobe Flash CS4 contains no documentation at all; it simply redirects to the online
Adobe flash: How to determine users CPU characteristics? (its mhz, its current ocupation) I
The Adobe docs (I can't find which) state that Flash can read Shared Objects
I Adobe Air completly JavaScript? Can't I use a .NET language like VB.NET or
Using Adobe Air 2.0 beta 2 I want to open a cmd file when
This page from Adobe says to add a wmode parameter and set its value
I am using Adobe Captivate 3 and am having trouble disabling the typing noise

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.