For the ISPF case, I think the document writers think that they have covered everything about the accepted regular expression syntax by stating up front on that page:
“ISPF uses the IBM® C regcomp() — Compile regular expression and regexec() — Execute compiled regular expression functions to compile and execute a regular expression . . .” We will have to wait for Sri Kolusu to answer for the DFSORT case. Peter From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Paul Gilmartin Sent: Saturday, April 20, 2024 10:47 AM To: [email protected] Subject: Regular Expressions: DFSORT, ISPF: "$","^" The description of regular expressions for DFSORT: <https://urldefense.com/v3/__https://www.ibm.com/docs/en/zos/3.1.0?topic=statement-regular-expressions__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!ISjCqr_3erWLCvri7EDUGaDALI5JZbBrCn-8xtm7byCaYpcu4YuqmgB5e79Zne4jTdkWsnfOsOiP9tpZPlNCZywa8UhWH-zyKo8savVm$<https://urldefense.com/v3/__https:/www.ibm.com/docs/en/zos/3.1.0?topic=statement-regular-expressions__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!ISjCqr_3erWLCvri7EDUGaDALI5JZbBrCn-8xtm7byCaYpcu4YuqmgB5e79Zne4jTdkWsnfOsOiP9tpZPlNCZywa8UhWH-zyKo8savVm$>> mentions "$" to match the end of a string, but not "^" to match the beginning. The description of regular expressions for ISPF: <https://urldefense.com/v3/__https://www.ibm.com/docs/en/zos/3.1.0?topic=string-regular-expressions-string1__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!ISjCqr_3erWLCvri7EDUGaDALI5JZbBrCn-8xtm7byCaYpcu4YuqmgB5e79Zne4jTdkWsnfOsOiP9tpZPlNCZywa8UhWH-zyKl30sRdu$<https://urldefense.com/v3/__https:/www.ibm.com/docs/en/zos/3.1.0?topic=string-regular-expressions-string1__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!ISjCqr_3erWLCvri7EDUGaDALI5JZbBrCn-8xtm7byCaYpcu4YuqmgB5e79Zne4jTdkWsnfOsOiP9tpZPlNCZywa8UhWH-zyKl30sRdu$>> mentions neither "^" nor "$". Are these omissions intentional? -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
