Re: Simple RegExp function
- From: Michael Mair <Michael.Mair@xxxxxxxxxxxxxxx>
- Date: Mon, 17 Jul 2006 21:53:33 +0200
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.
.
- Follow-Ups:
- Re: Simple RegExp function
- From: drasko
- Re: Simple RegExp function
- References:
- Simple RegExp function
- From: drasko
- Simple RegExp function
- Prev by Date: Re: How to write a small graceful gcd function?
- Next by Date: Re: How to write a small graceful gcd function?
- Previous by thread: Simple RegExp function
- Next by thread: Re: Simple RegExp function
- Index(es):
Relevant Pages
|