06-06-2011 02:15 AM
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.???
Solved! Go to Solution.
06-06-2011 02:20 AM - edited 06-06-2011 02:21 AM
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;))
06-06-2011 05:52 AM
But why do we need 2 back slash to detect one????
06-06-2011 06:00 AM
I think it's because the backslash is used in formats etc. For example \s for string.
06-06-2011 06:04 AM
Hi,
Even Deejay is right. That's the reason why ' \ ' can't be used alone in such functions.
Regards,
Nitzz
(Kudos are always Welcome;))