I guess you want to do some project.
For doing so you need to tokenize the string and parse it using
your parsing logic.
For tokenizing you need to know regarding regular expression and how to use them using C.
This link can be helpfull for you
http://www.peope.net/old/regex.html[
^]