Forums Register Login

How to do string array searches w/ multiple returns.

+Pie Number of slices to send: Send
Is there a way to search an array for multiple matches? For example My array will have
"A","AB","AAB","AA123","BC","BA","BA","BAC","C"..."Z". I want a function to be able to return, A, AB,AAB,AA123 if it receives "A", if the function receives AA it returns AAB,AA123. Anyone have any, ideas, links, documentation, which my be helpful? I'm stuck can't seem to find any helpful info for this one.

Thanks.
+Pie Number of slices to send: Send
Basically, you want to return a list. You want something like this:



I leave it to you to define the matches() method.

- Adam
+Pie Number of slices to send: Send
Thanks, I'll give this one a try.
We find this kind of rampant individuality very disturbing. But not this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 864 times.
Similar Threads
String combinations & permutations
What is the use of static block
recursion....im an idiot!!
Query Question
All possible combinations of the elements in the string array
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 00:08:03.