NTE|9||“Testing performed with the Sensititre YeastOne (YO6)
If you want to strip out all quotes string map is probably best. If however, you only want to strip out the quote if it is part of an open-quoted line, then you may need to get more creative.
Could your lines have multiple quotes, i.e., “text” more text “and” more? Or are you only going to have cases with one or two instances of “?
Assuming you will only have one or two quotes per line, you can do something like the following:
set text $xlateInVals
set num [regsub -all {“} $text {} newtext]
if {$num ==1} {
set xlateOutVals $newtext
} else {
set xlateOutVals $text
}
This should remove all open ended quotes but leave those quotes that are matching. If you have more than 2 quotes per line, as suggested by Robert, then you may need to come up with something different
Hope this helps…
Tom Rioux
Author
Replies
Viewing 1 reply thread
The forum ‘Cloverleaf’ is closed to new topics and replies.