This content has been marked as final. Show 4 replies
Sorry about that, its not home work I am working on message formatting now. Using regular expressions.
We get the message from the socket like
0117A0100 .admin.01010000FRAZEE.CA810FA1.admin.2 004030508342717836.1..0.0M1000030001000096..1000.
I need to spit that message in to fields and then process the message. We need to send the response back in the same format.
I want to split the string like this. there are some fields which are fixed length and other may change.
0117,A,0100, ,.,admin.,0101,0000,FRAZEE,.,CA810F,A,1,.,admin,.,2, 0040,30508342717836.1..0.0M1000030001000096..1000.
Thanks in advance.