If you need more than ECMA Script regexen there's PCRE.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Tuesday, May 2, 2023 9:39 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: REXX parse parens Shameless plug but you can use my RTK package to process regular expressions in z/OS REXX https://github.com/daveyc/RTK > On 2 May 2023, at 9:22 pm, David Crayford <dcrayf...@gmail.com> wrote: > > > >> On 2 May 2023, at 7:30 am, Frank Swarbrick <frank.swarbr...@outlook.com> >> 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN