Re: [pcre-dev] supplying modifiers

Αρχική Σελίδα
Delete this message
Συντάκτης: ph10
Ημερομηνία:  
Προς: Ze'ev Atlas
Υ/ο: Pcre Exim
Αντικείμενο: Re: [pcre-dev] supplying modifiers
On Fri, 10 Feb 2017, Ze'ev Atlas wrote:

> Hi PhilWe are preparing an interface for the Rexx language on z/OS.  I
> was looking for a way to supply the g, x, i modifiers. I cannot find a
> way to supply such modifiers external to the pattern (I know how to do
> it within the pattern).  Could you guide me where to look. Thank
> youZe'ev Atlas


You can set the PCRE2_CASELESS and/or PCRE2_EXTENDED options when you
call pcre2_compile(), which have the effects of /i and /x respectively.
(There are many other options as well.) You have to implement /g
yourself, outside the pattern, by calling pcre2_match() repeatedly, as
described in the comments about the "-g" option in the pcre2demo.c
sample program.

Philip

--
Philip Hazel