For personal stuff I have TSPF, which does allow the replacement string to have 
referbacks. For work I have a locked-down laptop and am only allowed to install 
what the IRS supports.

Does the IBM Open Editor for Z allow using refer-backs in replacements?

-- 
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר



________________________________________
From: IBM Mainframe Discussion List on behalf of salva
Sent: Saturday, April 12, 2025 3:08 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ISPF EDIT CHANGE regex requirements?


External Message: Use Caution


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

Reply via email to