LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Match Pattern Does Not detect "\" (backslash when back slash is given inside square brackets)

Solved!
Go to solution

Match pattern VI does not detect "\"(back slash) when I give Back slash inside the square brackets, I'm attaching the sample code which I made, In this VI all the symbols in the square bracket except back slash are detected. Does anyone know what is wrong with the program.???

0 Kudos
Message 1 of 5
(2,710 Views)
Solution
Accepted by topic author Vinay_Kumar_M_S

Hi,

 

Use a double slash [<,\\,>] inside the square bracket. It will be detected.


regards,

Nitzz

(Give kudos to good answers, Mark it as a solution if your problem is solved;)) 

Message 2 of 5
(2,707 Views)

But why do we need 2 back slash to detect one????

0 Kudos
Message 3 of 5
(2,688 Views)

I think it's because the backslash is used in formats etc. For example \s for string. 

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
Message 4 of 5
(2,686 Views)

Hi,

 

Even Deejay is right. That's the reason why ' \ ' can't be used alone in such functions. 

 

Regards,


Nitzz

(Kudos are always Welcome;))

Message 5 of 5
(2,682 Views)