I have searched across the web though have not had any luck in correcting my issue. What I want to do is search an array for a substring and return the result. An example of the array is like this:
the_array = ["PP: com.package.id, NN: Package Name","PP: com.another.id, NN: Another Name"];
What I want to do is search the_array
for com.package.id
making sure that it appears between the "PP:"
and ","
. Also please note that the array will contain several thousand values. Hope you can help, thank you.