Re: Simple RegExp function



drasko schrieb:
Hi all. I need to code simple and fast int regexp_match(char *regexp,
char *string) function that will follow the expression regexp, and see
if there is a matching in the string. If there is, it will return 1
(TRUE). Are there some examples I can see, do you have ideas how to
start with this, and so on...

GNU C regexp is to big and complicated for me, it takes a lot of space
(i need this for the use in embedded system).

I'll appreciate any example I can follow. Just to make a start...

There are several libraries out there; just evaluate them for your
purposes. Have a look at
http://arglist.com/regex/
and the links you can find there.

Apart from that: If you have very simple regular expressions in
mind, e.g. no replacing or referring: Roll your own. It is not that
hard.

Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
.



Relevant Pages

  • Re: regex question
    ... But my question is where does it stop matching for the caret ... I think the caret is everything from the beginning of the string all ... The carret at the beggining denotes that the next char ... character in the matching string. ...
    (comp.lang.perl.misc)
  • Re: regex question
    ... But my question is where does it stop matching for the caret ... I think the caret is everything from the beginning of the string all ... The carret at the beggining denotes that the next char ... character in the matching string. ...
    (comp.lang.perl.misc)
  • Re: Simple RegExp function
    ... char *string) function that will follow the expression regexp, ... if there is a matching in the string. ...
    (comp.lang.c)
  • Simple RegExp function
    ... I need to code simple and fast int regexp_match(char *regexp, ... char *string) function that will follow the expression regexp, ... if there is a matching in the string. ...
    (comp.lang.c)
  • Re: How to add thousand separators
    ... First, this code is obsolete as written, because char is a dead data type and should not ... Note that both of these should be stored as string resources since they might need to be ... 18 digits for any reason. ... you have made a VERY SERIOUS DESIGN ERROR. ...
    (microsoft.public.vc.mfc)