LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Search and replace multi-line string

Solved!
Go to solution

I'm trying to search and replace a line of string in a multi-line string. I don't understand the explanation of regular expressions in the help and how to use the caret and dollar sign. I am trying to replace the line "Solenoid Voltage" with either "Solenoid Voltage A" or "Solenoid Voltage B" programmatically. Any help would be greatly appreciated.

LV 2016

 

Untitled_1d.png

0 Kudos
Message 1 of 4
(3,155 Views)
Solution
Accepted by topic author do-loop

Maybe too obvious, but your spelling of "Solenoid" in the search string needs to match the spelling in the multi-line string.

 

PsyenceFact

Message 2 of 4
(3,151 Views)

Sometimes it's the most obvious things that escape me!

Thank you

0 Kudos
Message 3 of 4
(3,137 Views)

@do-loop wrote:

Sometimes it's the most obvious things that escape me!

Thank you


That happens to everyone.  You come to the forums to get more eyes on the code so someone can spot what you cannot.  The forum did it's job.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 4
(3,036 Views)