Can you give a couple of examples of the kinds of strings you want parsed?
Also you mention "design pattern". What is that, exactly?