www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/02/10:42:53

Message-ID: <c=US%a=_%p=Hassler_Communic%l=DAISY-970702144010Z-459@daisy.hcst.com>
From: Bryan Murphy <bryan DOT murphy AT hcst DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>, "'Chris'" <dingfam AT imag DOT net>
Subject: RE: Parsing a string from a string
Date: Wed, 2 Jul 1997 10:40:10 -0400
MIME-Version: 1.0

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
>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019