Message-ID: From: Bryan Murphy To: "'djgpp AT delorie DOT com'" , "'Chris'" Subject: RE: Parsing a string from a string Date: Wed, 2 Jul 1997 10:40:10 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Precedence: bulk This really isn't a response to your question, but you did remind me of something I've been meaning to bring up. Is there a Perl like Regular Expression Library that works with DJGPP and/or VC++? I've been really spoiled by perl here at work, and would love to be able to use regular expressions in C/C++. And, to get to your question, have you ever done any work with Tokens and Parsers? They can be a little tricky, but they let you parse out strings such as that. If that string is all you are going to use, however, I think you cold probably just use strcmp and strcat to get the parts you want out. Bryan Murphy Internet Applications Developer HCST, Inc. : http://www.hcst.com/ Home Page: http://www.hcst.com/~bryan/ >---------- >Heya > I'm writing a small script interpreter program, and I need to know >how to get a C-Like string from a line such as this: > var str = "This the string I want to get." > > Right now, I'm using the .cfg file parser in sound.c that came with >Allegro 2.2 (I hope nobody minds). I want to get the parts in the quotes >in one argv[] for easy processing. > > Anyway, its 2:09am, so I hope the above is coherent :) If you find >this lacking information, just email me back telling me so. > >Any help is, as always, appreciated. > >Thanks, >chris >