04-25-2014 10:40 AM
I have a problem with a matching string VI. I want to compare a substring, let's say it is "This is my substring" which are included twice in a larger string.
I can match the first one but I don't know how to continue search for the second. I need to PASS this search whenever both substrings are found.
Solved! Go to Solution.
04-25-2014 10:51 AM - edited 04-25-2014 05:39 PM
It would help if you would show some code so we can see what tools you are using, there are many different ways to do this.
For example match pattern has an offset input, so all you need to do is call it a second time with the offset set past the first match. (more generally, you would use a loop and shift register to find all matches this way).
You can also use " Search and replace string" with your pattern (set "replace all" to true) and it will tell you how many it replaced.
04-25-2014 12:03 PM
Thanks, I used your tip with replace, even though I didn't replace anything I used the count output to see that it was dicovered twice.