LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Search in a string after a specific parameter

Solved!
Go to solution

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.

 

 

0 Kudos
Message 1 of 7
(2,365 Views)
Solution
Accepted by topic author LVdummies

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.

 

Message 2 of 7
(2,336 Views)

Hello,

 

Perfect !

Thanks a lot.

0 Kudos
Message 3 of 7
(2,316 Views)

You're welcome Smiley Wink

 

0 Kudos
Message 4 of 7
(2,313 Views)

That's rather complicated for a simple search.  This?

 

Find%20String%20Between%20Markers[1].png

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

Message 5 of 7
(2,297 Views)

Sweet as a nut Jim.

 

( albeit requiring a bit of PCRE know-how Smiley Wink )

 

Message 6 of 7
(2,292 Views)

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.

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 7 of 7
(2,279 Views)