Useful in scripts, but it doesn't enhance ISPF EDIT CHANGE. What advantage does it have over PCRE2?
-- 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