[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] [bug-gnulib] Does regex.c support non-greedy quantifier
From: |
Bruno Haible |
Subject: |
Re: [bug-gnulib] [bug-gnulib] Does regex.c support non-greedy quantifiers? |
Date: |
Mon, 11 Apr 2005 18:14:53 +0200 |
User-agent: |
KMail/1.5 |
Hrvoje Niksic wrote:
> Does gnulib's regex.c support Perl-style non-greedy quantifiers,
> specified by appending "?" to "*"?
Is it possible to transform a regex pattern that uses this feature into a
POSIX Extended Regex, that doesn't use it? If yes, you could parse the
regex - this is not the most difficult thing to do, and you can also take
the code from grep's dfa.c - and pass the transformed pattern to the system's
regex facility.
Bruno
Re: [bug-gnulib] [bug-gnulib] Does regex.c support non-greedy quantifiers?,
Bruno Haible <=