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

Reply via email to