> On 13 Apr 2025, at 2:38 am, Seymour J Metz <sme...@gmu.edu> wrote: > > Useful in scripts, but it doesn't enhance ISPF EDIT CHANGE. What advantage > does it have over PCRE2?
You can easily write a script to implement your own version of EDIT CHANGE. ISPF has been functionally stabilized and is effectively on life support. I would not expect any new features. Like it or not, IBM is investing in new technologies that run in shell environments. What advantages does my package have over the PCRE2 REXX implementation on the CBT tape? I recently evaluated that version because Ze’ev Atlas is planning to discontinue support. Unfortunately, the REXX external function performs a STORAGE OBTAIN on every call, and the additional linkage overhead could become a performance issue. The PCRE2 maintainer recently asked for feedback on Discord whether to continue supporting EBCDIC. I worked with him and helped fix several testing issues: https://github.com/PCRE2Project/pcre2/commit/0d0ac3aa0fe2c91dc648f809a7aac78ebc57048b The z/OS PCRE2 code is beginning to decay. Ze’ev is not familiar with building software in z/OS UNIX and does not use Git. As a result, he copied the entire PCRE2 code base into PDS data sets and builds it using JCL. That makes it very difficult to apply upstream fixes or track new releases. I uploaded the contents of the CBT tape to GitHub. If anybody is interested in PCRE2 from COBOL or REXX then I encourage you to pick up from Ze’ev. He was soliciting for somebody to take the reins. https://github.com/daveyc/PCRE2-z-OS > > -- > Shmuel (Seymour J.) Metz > http://mason.gmu.edu/~smetz3 > עַם יִשְׂרָאֵל חַי > נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר > > > > ________________________________________ > From: IBM Mainframe Discussion List on behalf of David Crayford > Sent: Saturday, April 12, 2025 9:33 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: ISPF EDIT CHANGE regex requirements? > > > External Message: Use Caution > > > My regex REXX API handles advanced captures. https://github.com/daveyc/RTK > >> On 12 Apr 2025, at 15:09, salva <sa...@rczero.com> wrote: >> >> Meanwhile, until IBM offers a better regexp approach (especially for >> captures in replacements), I use a quick-and-dirty macro to: >> >> - >> >> Copy the current edit session to a /tmp file >> - >> >> Call bpxwunix("sed -E '/from/to/g' ifile > ofile") ... >> - >> >> Copy ofile back to the current session edit >> >> It has a lot of limitations (as does sed), and when it's not enough, my >> next option is to download to Notepad++ via FTP. (Notepad++ can be "easily" >> integrated with z/OS FTP). >> >> Regards, salva. >> >>> El vie, 11 abr 2025 a las 20:23, Seymour J Metz (<sme...@gmu.edu>) escribió: >>> >>> Has anybody submitted ISPF requirements for IEDIT CHANGE to support >>> regexen beyond what POSIX requires? E.g., >>> >>> \b word boundary >>> \d digit, equivalent to [0-9] >>> backreferencing >>> named captures >>> PCRE >>> referring to captures in replacement string >>> Unicode character classes >>> >>> In particular, make it easy to do something like >>> >>> C R'/bR(\d+)\b' R'\($1\)' >>> >>> -- >>> Shmuel (Seymour J.) Metz >>> http://mason.gmu.edu/~smetz3 >>> עַם יִשְׂרָאֵל חַי >>> נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר >>> >>> >>> >>> ---------------------------------------------------------------------- >>> 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 > > ---------------------------------------------------------------------- > 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 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN