Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Try it with "[Bill]", "1,2,3", and "Apple ][". Creative, but it has cases whwen it is incorrect. Commented Jul 22, 2013 at 4:13
  • 1
    Now try it with "~,~". You can't make a program with this kind of architecture completely bulletproof. Commented Jul 22, 2013 at 14:05
  • Yeah, I know... I've removed the downvote. But you should think a little more carefully about posting answers here, especially for questions like this one that are several years old. Not only are the answers immediately useful to the original poster, but they also show up on Google searches. (In fact, for questions that are several years old, new answers may have no value to the original poster.) Solutions that have drawbacks or errors can be harmful to people who find it later out of context. Commented Jul 22, 2013 at 18:40
  • 1
    I learn a lot here from others post like mine, with not perfect solution, but really rich of knowledge, and side thinking. Relax for others, each one must understand what each line of their code do. Remember programing is like an art, and even each line of code, means something about the programmer personality. And yes, I will not use this code in production! Commented Jul 22, 2013 at 19:06