Re: Extracting map values matching a pattern

2013-01-06 Thread Stephen Compall
On Jan 6, 2013 1:55 PM, "Jonathon McKitrick" wrote: > My first thought is to simply iterate the web parameter map, and convert each key to a string using NAME and then a regex on the name. Is there a better way? If the numeric range may not be contiguous or start at 0 or 1, and you do not need t

Extracting map values matching a pattern

2013-01-06 Thread Jonathon McKitrick
I have a web handler which will take any number of parameters beginning with 'q' and a number, like 'q1', 'q2', etc. I want to iterate and operate on just those parameters. My first thought is to simply iterate the web parameter map, and convert each key to a string using NAME and then a regex