cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Search for string value Without converting to array

Solved!
Go to solution
Highlighted

Search for string value Without converting to array

How do I go through a string to search for a value (Format: Variable = value\tVariable2 = value2), Without converting to array.

0 Kudos
Message 1 of 10
(123 Views)

Re: Search for string value Without converting to array

Hi Rafael,

 

use SearchString function to look for your "variable", then parse the value after the "="...

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

Message 2 of 10
(122 Views)

Re: Search for string value Without converting to array

I need to limit the search to \ t (tab), how do I?

0 Kudos
Message 3 of 10
(110 Views)
Solution
Accepted by topic author rafael.assis16
11-09-2018 03:00 AM

Re: Search for string value Without converting to array

 

You could also use Match Regular Expression

 

fp.PNG

 

bd.png

Message 4 of 10
(84 Views)

Re: Search for string value Without converting to array

Hi Rafael,

 

I need to limit the search to \ t (tab),

Why? (According to your other thread you should search the whole string…)

 

To answer your question:

1. Search for tab and keep the substring before the tab

2. Search your "variable" in the substring and get the value after the following "=".

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

Message 5 of 10
(83 Views)

Re: Search for string value Without converting to array

Excellent, could you give me a website to better understand Match Regular Expression?

0 Kudos
Message 6 of 10
(50 Views)

Re: Search for string value Without converting to array

I need two types of search, one going through the arrays and another the string, so I'll have two options if necessary.

0 Kudos
Message 7 of 10
(49 Views)

Re: Search for string value Without converting to array


@rafael.assis16 wrote:

Excellent, could you give me a website to better understand Match Regular Expression?


Just use the Help built into LabVIEW.  You can access the proper page via the Context Help or right-click on a Match Regular Expression and choose "Help".


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Message 8 of 10
(40 Views)

Re: Search for string value Without converting to array


@rafael.assis16 wrote:

Excellent, could you give me a website to better understand Match Regular Expression?


Try https://regexr.com/

Message 9 of 10
(30 Views)

Re: Search for string value Without converting to array

Tks.

0 Kudos
Message 10 of 10
(28 Views)