LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Replace LF or CR or Both with WhiteSpace in LabVIEW

Solved!
Go to solution

Hi,

 

I am facing issue while replacing string. I have one buffer which may contains multiple CR or LF or both. I just want to replace these with the white space.

I am using "search and replace.vi" for this purpose, I have changed this VI to Regular expression by right+click. In input I have given my buffer, in search string input [\r\n]$ regular expression and in replace string I have given "Empty string" constant. 

 

I think I have made correct changes for the issue but nothing working so far.

 

Thanks,

Pratik

0 Kudos
Message 1 of 4
(3,479 Views)
Solution
Accepted by pratik0403

Hi Praktik,

 

I just want to replace these with the white space.

Simple solution without regex:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(3,437 Views)

Thanks for this simple solution..Smiley Happy

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

But it still simpler with regex Smiley Wink

Ben64

even simpler.png

Message 4 of 4
(3,384 Views)