<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>I want to write parser for data I receive from a stock exchange server. There is no delimeter that define different fields in buffer I receive. However, it is provided in exchange spec's start and of each field. <br> How should I write parser for data I recveive? I am new to parser consept and apprecite your suggestion.<br>I am putting following example data string just to insist my scenario<br><br>Data my application recveive:<br>1001TXPASSWORDSESSION1N<br> <br>I need to decode it(as per spec) as:<br>Messate type: 1001<br>UserID:����������� TX<br>password:������� PASSWORD<br>session:���������� SESSION<br>data:�������������� N<br><br>How should I be doing it?<br><br>Thank You,<br> Gaurav<br></blockquote></div><br>