Re: Simple RegExp function
- From: "drasko" <drasko.draskovic@xxxxxxxxx>
- Date: 17 Jul 2006 14:08:53 -0700
Michael Mair wrote:
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.
Michael,
thanks. "Rolling my own" is exactly what I will try to do. It has to be
very simple. I just need some instructions, as I look where to begin.
Link you send is currently dead, but I will check it again tomorrow...
I just need some sources to give me starting ideas, and I hope this
will help.
.
- References:
- Simple RegExp function
- From: drasko
- Re: Simple RegExp function
- From: Michael Mair
- Simple RegExp function
- Prev by Date: Re: How to write a small graceful gcd function?
- Next by Date: Re: i need help about Turbo C
- Previous by thread: Re: Simple RegExp function
- Next by thread: Length Issue in Char while type casting
- Index(es):
Relevant Pages
|