09-23-2013 07:48 PM
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!
09-23-2013 07:51 PM - edited 09-23-2013 07:53 PM
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.
09-23-2013 07:56 PM
The actual element type as in the example.Thank you!
09-24-2013 02:28 AM
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
09-24-2013 08:41 AM
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.
09-24-2013 10:22 AM
".AA" matches any character string ending with AA, "|" or "AA." matches any character string starting with AA
09-24-2013 07:08 PM
thanks! I have solved it
09-24-2013 07:38 PM
@guoyu wrote:
thanks! I have solved it
what did you use to solve it? ...so that others may know.
09-24-2013 07:42 PM
as the picture
09-24-2013 10:06 PM - edited 09-24-2013 10:09 PM
cool....then please mark that post as a solution and give kudos to those that helped