I tend to side with
mildside. Show us that you have tried something on your own -- and show us how it failed to do what you really wanted it to do, given a specific input that is relevant to your problem. (Personally, I'm having trouble understanding what you really want, so if you could add some trial, error and further explanation, that would help.)