LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Match Pattern not working as intended

Solved!
Go to solution

Hello,

 

Simple thing I'm confused about. I'm using Match Pattern to try and find [ in the string "Time[s]" and it seems that it is not finding it. What's going on here? It can find every other character in the string but not [. 

0 Kudos
Message 1 of 2
(2,834 Views)
Solution
Accepted by topic author TheStrangeQuark

The string you match to is a regular expression. You need to pass a "\[" instead of "[".

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(2,822 Views)