This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: regexec pattern matching


* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]