On Fri, 2 Sep 2022 07:33:27 -0500, Paul Gilmartin <[email protected]> wrote:

>In DFSORT Application Programming Guide:
>INCLUDE Control Statement
>Regular expressions
>    ...
>    Two versions of regular expressions are supported:
>    • Basic Regular expressions (BRE)
>    • Extended Regular expressions (ERE)
>
...
>
>How can the programmer select which of the two supported
>versions DFSORT will use?  The later examples seem to show
>only EREs or to be neutral.  An example showing a BRE
>instead would be useful.
>
>Should I submit a RCF?

An RCF would be appropriate, I think.

Purely as a guess: The regular expression "mode" (BRE, ERE) might be set using 
an options string at the beginning of the regular expression. For example, 
according to https://www.regular-expressions.info/modifiers.html if you were 
processing regular expressions in Tcl, you would use (?b) at the beginning of 
the expression to force BRE mode, and (?e) to force ERE mode. It is possible 
that this or something similar would work in DFSORT's engine.

It's fairly common, in my experience with different regex engines, for some set 
of the options shown on that page to be supported.

-- 
Walt

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to