Have a look at the parse example in Serial Input Basics
It should not be too difficult to adapt it for your requirements.
...R
Have a look at the parse example in Serial Input Basics
It should not be too difficult to adapt it for your requirements.
...R