Adding the space causes the opposite problem; the valueOpt field ends with two 
parens instead of none.

I'm not the author; I'm just trying to fix it!

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
David Crayford
Sent: Tuesday, May 2, 2023 7:23 AM
To: [email protected]
Subject: Re: REXX parse parens

> On 2 May 2023, at 7:30 am, Frank Swarbrick <[email protected]> 
> wrote:
> 
> Parse Var option varOpt '(' valueOpt ‘)’



Adding an extra space after the closing parenthesis can help as a workaround.

        Parse Var option varOpt '(' valueOpt ‘) ‘

Parse is good for simple text yanking but it’s not match for regular 
expressions or PEGs.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

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

Reply via email to