LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to choose some elements containing some Specific alphabets from an array?

for example, an array contains the following elements: AA1 AA2 AAB CAA ABC   BBE  BAA  . I want to choose out the elements containing AA,that is

AA1 AA2 AAB CAA BAA. Can you give me the relevant procedures? thank you!

0 Kudos
Message 1 of 13
(3,428 Views)

Look at Match Regular Expression.  I don't know enough about the coding format to tell you what the search code would be.

 

Of course just doing a search string for "AA" will give you whether it exists in a particular array element or not.

0 Kudos
Message 2 of 13
(3,427 Views)

The actual element type as in the example.Thank you!

0 Kudos
Message 3 of 13
(3,423 Views)

I don't see how you can do that without examinig each element of the array.

 

The examination could be done with regular epression.

 

If you are not anxious about the sequence of the result you can use parallizing of loops to take advantage of your multicore.

 

Gabi

7.1 -- 2013
CLA
0 Kudos
Message 4 of 13
(3,396 Views)

I'm assuming his question is now solved because he did say "thank you."  He never asked any additional questions, so it must mean he understands what to do now.

0 Kudos
Message 5 of 13
(3,382 Views)

Example_VI.png

 

".AA" matches any character string ending with AA, "|" or "AA." matches any character string starting with AA

0 Kudos
Message 6 of 13
(3,364 Views)

thanks! I have solved it

0 Kudos
Message 7 of 13
(3,345 Views)

@guoyu wrote:

thanks! I have solved it


what did you use to solve it? ...so that others may know.

0 Kudos
Message 8 of 13
(3,338 Views)

as the picture 

0 Kudos
Message 9 of 13
(3,335 Views)

cool....then please mark that post as a solution and give kudos to those that helped  Smiley Wink

0 Kudos
Message 10 of 13
(3,323 Views)