In article <65*************@mid.individual.net>,
Ian Collins <ia******@hotmail.comwrote:
Mahendra Kutare wrote:
Or do we need to have any specific library ?
I am more interested in knowing if we can do string pattern matching
regular expression processing with C.
Not in standard C, there are plenty of extensions (POSIX regex for example).
And I betcha that was written in ... wait for it ... C!
Yes, you can indeed do regular expression processing in C. Even in
absolutely 100% standard C.
You can do *DAMN NEAR ANYTHING* in standard C. (Even *THAT*? Get your
mind out of the gutter! I said "damn near"! :) )
You just have to be willing (and able) to write the code to do it if you
don't have (or for some reason don't want to/aren't allowed to use) a
library routine that already does it for you.
Fortunately, at this stage in the game there are many excellent
libraries available out there that do many useful things, and they are
perfectly compatible with standard C (and quite possibly written in
standard C) even if they aren't specced by the C standard as being
officially part of the language. Not being required by the standard
doesn't make them any less "standard C".
--
Don Bruder -
da****@sonic.net - If your "From:" address isn't on my whitelist,
or the subject of the message doesn't contain the exact text "PopperAndShadow"
somewhere, any message sent to this address will go in the garbage without my
ever knowing it arrived. Sorry... <http://www.sonic.net/~dakiddfor more info