From: Florian Weimer <fweimer@redhat.com>
To: Anand Akhare <anan.akhare@gmail.com>
Cc: libc-help@sourceware.org
Subject: Re: regexec pattern matching
Date: Tue, 04 Dec 2018 14:54:00 -0000 [thread overview]
Message-ID: <87va49tk98.fsf@oldenburg2.str.redhat.com> (raw)
In-Reply-To: <CACWLfGL2SCtVixe3xzrU=6DyCJGSf3X46Xa5dHeAvx8AOcSDxQ@mail.gmail.com> (Anand Akhare's message of "Fri, 2 Nov 2018 14:29:00 +0530")
* Anand Akhare:
> Hello,
> regexec matching pattern against buffer throughout complete length
> and skips for those that doesn't match until match is found.
> Is it possible to get match for first character and if match fails, it
> returns fail rather than going forward to next characters.
> In summary, only start of buffer should b considered for match.
I think glibc's non-POSIX matching interfaces (re_search etc.) support
this via the range argument, but I have not tired this.
Thanks,
Florian
prev parent reply other threads:[~2018-12-04 14:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-02 8:59 Anand Akhare
2018-12-04 14:54 ` Florian Weimer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87va49tk98.fsf@oldenburg2.str.redhat.com \
--to=fweimer@redhat.com \
--cc=anan.akhare@gmail.com \
--cc=libc-help@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).