01-21-2014 11:55 PM
How can a search in a string like this ( if i have probe, I get this answer)
Parameters:
Loop 0:
Color=1,wind=1,water=3,car=SA1,bus=10,house=5
I like to take out the value from "car".
Note that the order may be changed or some parameters vill be added.
Thanks for answers.
Solved! Go to Solution.
01-22-2014 02:07 AM
Hi
Here's a little VI that will help. Just tweak it to your requirements.
To find the value for 'car' enter 'car=' as the 'Start string' and ',' as the End String.
01-22-2014 02:43 AM
Hello,
Perfect !
Thanks a lot.
01-22-2014 02:44 AM
You're welcome
01-22-2014 05:44 AM
01-22-2014 05:55 AM
Sweet as a nut Jim.
( albeit requiring a bit of PCRE know-how )
01-22-2014 06:51 AM
NeilR makes a good point. I neglected to mention that I used the Match Regular Expression node which, for new users, isn't going to be the first choice. It's worth learning how to use basic regular expressions for everyday use; advanced regular expressions are magic.