LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong result in match pattern

Solved!
Go to solution

Hi, I want to extract the space (sometimes, !#" etc) from "@020 12345' using match pattern function.

When I used [\s!#"] as a regular expression, the result "20".

Why my expression is not worked and Can you propose more suitable expression?

 

labmaster 

*)Enclosed is the VI example in LV2009

0 Kudos
Message 1 of 4
(2,379 Views)
Solution
Accepted by topic author labmaster

Your string indicator is set to hex display. 0x20 is a space, right? 😉

0 Kudos
Message 2 of 4
(2,373 Views)

@labmaster wrote:

Hi, I want to extract the space (sometimes, !#" etc) from "@020 12345' using match pattern function.


You should also describe what you mean by "extract". If you simply need a space, you can use a space diagram constant. No need to extract it. Do you want the resulting string without the space, for example?

 

I am sure one of the regex gurus here will jump right on this one... 😉

0 Kudos
Message 3 of 4
(2,371 Views)

Wow, I had a mistake to interprete the indicator. Happen to be "20".

Thanks.

 

labmaster.

0 Kudos
Message 4 of 4
(2,353 Views)