Search found 2 matches

by trach
Wed Nov 20, 2019 9:55 am
Forum: LEGACY scripting
Topic: [SOLVED]Remove Quotes from Textfile
Replies: 2
Views: 950

Re: Remove Quotes from Textfile

freddyp wrote:
Wed Nov 20, 2019 9:03 am
Instead of using a string to be replaced you should use a global regular expression to be replaced:

Code: Select all

var outputFileText = inputFileText.replace(/\"/g,'');
Works like a charm.
Thank you freddyp.
by trach
Wed Nov 20, 2019 8:44 am
Forum: LEGACY scripting
Topic: [SOLVED]Remove Quotes from Textfile
Replies: 2
Views: 950

[SOLVED]Remove Quotes from Textfile

Good morning, is there any chance removing all quotes from a textfile using the switch script element? I´ve found a script part already but it is just removing the first quotes of the first line of a file. var extension = s.getPropertyValue("Extension"); var tempFile = job.createPathWithExtension(ex...