On Mon, 15 Nov 2004 08:07:36 -0800, MD wrote:
What do most of the experienced programmers here do when they encounter
a situation, constrained to a C programming env obviously, where they
could
use a regexp system?
I find the regcomp(), regexec(),system a little unwieldy, especially
when
dealing with user inputted expressions. Is there example code someone
can point
me to as a howto on dealing with regexp issues?
The C Standard does not provide any real regular expression functionality,
the functions you referenced are part of the POSIX standard which is not
discussed here. You should post your question over at
comp.unix.programmer where this will be on-topic.
<OT>
I am not sure what you mean by unwieldly, the functions are fairly
straight-forward. My personal preference is the pcre library (not part of
any standard) which implements powerful regex functionality of the Perl
language and is well documented. You can learn more at
www.pcre.org.
</OT>
Rob Gamble