LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

REGEX XML String

How do I input a Regular Expression like \r\n\s\s into a string?

I know \r\n we can use end of line constant.

What about \s\s?

I can't concatenate \s\s into my output string.

Can anyone give me any guidance?

 

Thanks,

Alan.

0 Kudos
Message 1 of 3
(2,536 Views)

Hi Alan,

 

you have to provide information on the view setting of the string (control/constant)! Is it set to "Default" or to "\-Code display"?

 

- When using default display (as should be used for input for RegEx functions) you just type \r\n\s\s into the string control.

- Otherwise set "\-code display" and start typing the same chars...

Best regards,
GerdW


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

@saintalan94 wrote:

How do I input a Regular Expression like \r\n\s\s into a string?

I know \r\n we can use end of line constant.

What about \s\s?

I can't concatenate \s\s into my output string.

Can anyone give me any guidance?

 

Thanks,

Alan.


\s is Space, there's a space constant in string palette, or simply place a string constant with 2 spaces.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 3
(2,505 Views)