* Does regex.h support lookahead?
@ 2021-05-17 13:42 Peng Yu
2021-05-17 14:18 ` tomas
0 siblings, 1 reply; 3+ messages in thread
From: Peng Yu @ 2021-05-17 13:42 UTC (permalink / raw)
To: libc-help
Hi,
It seems that regex.h does not support lookahead. Is it so? Thanks.
--
Regards,
Peng
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Does regex.h support lookahead?
2021-05-17 13:42 Does regex.h support lookahead? Peng Yu
@ 2021-05-17 14:18 ` tomas
2021-05-18 16:00 ` Ian Pilcher
0 siblings, 1 reply; 3+ messages in thread
From: tomas @ 2021-05-17 14:18 UTC (permalink / raw)
To: Peng Yu; +Cc: libc-help
[-- Attachment #1: Type: text/plain, Size: 384 bytes --]
On Mon, May 17, 2021 at 08:42:11AM -0500, Peng Yu via Libc-help wrote:
> Hi,
>
> It seems that regex.h does not support lookahead. Is it so? Thanks.
You mean those "look ahead" i.e. (?=...) viz. (?!...) and "look behind",
i.e. (?<=...) viz. (?<!...) assertions of PCRE?
As far as I know, no. Regex.h supports exactly POSIX (extended) regular
expressions.
Cheers
- t
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Does regex.h support lookahead?
2021-05-17 14:18 ` tomas
@ 2021-05-18 16:00 ` Ian Pilcher
0 siblings, 0 replies; 3+ messages in thread
From: Ian Pilcher @ 2021-05-18 16:00 UTC (permalink / raw)
To: libc-help
On 5/17/21 9:18 AM, tomas@tuxteam.de wrote:
> As far as I know, no. Regex.h supports exactly POSIX (extended) regular
> expressions.
Fortunately, the PCRE library exists.
http://pcre.org/
--
========================================================================
In Soviet Russia, Google searches you!
========================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-18 16:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-17 13:42 Does regex.h support lookahead? Peng Yu
2021-05-17 14:18 ` tomas
2021-05-18 16:00 ` Ian Pilcher
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).