LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

match pattern search for multiple words?

Hi, so my question involves the Match Pattern Function. I know how to use it and to open a file and have it search for a specific word. That works fine. But now I want it to search for more than just one word. Can I give it multiple words separated by commas or spaces? Anyway, that's it. Just how to make the Match Pattern Function search for more than 1 word? Thanks.

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

You can't do this with the Match Pattern function, but you can with the Match Regular Expression.  Simply separate the two words with a pipe (|).

 

 http://www.regular-expressions.info/

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 2
(3,854 Views)