Kirk Wolf wrote:
Can be demonstrated with the following test program. This works fine with
regcomp() on linux and other RE platforms (PCRE, javascript, python, etc).
I dunno why that would fail - tried it with a couple of UNIXs
and of course Dignus Systems/C, all got return-code of 0.
(Had to add the missing closing of the comment.)
Looks like you're getting a REG_EPAREN... there are no \( or \)
parens in your string, just "regular" altnerations of parenthesized
sub-expressions. I verified that removing at least one alternation allows
IBM's regcomp() to succeed.
Looks like they must have a fixed limit somewhere... ??? Perhaps just
the regular-expression parser? I suppose you'll have to break it up
into more than one regcomp()+regex() to test the various alternatives.
- Dave R. -
--
[email protected] Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN