In the regular expression engine used by ISPF (the one in the IBM C run time), \d is not "a digit" but a simple "d". The \ is only used as an "escape" character and \d is simply d in that context. The basics of what is acceptable is here: http://www-01.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.f54em00/useofr1.htm%23useofr1
Basically, it appears to me that ISPF is using POSIX (of course) EREs (Extended Regular Expressions). The \d type is PCRE not ERE. On Fri, Dec 12, 2014 at 11:20 AM, Jon Butler <[email protected]> wrote: > > I can use regular expressions, but the "generic" attributes such as \d for > any digit do not appear to work in ISPF. If I use FIND r'\([0-9]\)' I can > find the string "(9)", but if I use FIND r'\(\d\)' I can not. > > For me FIND r'd' and FIND r'\d' both find the letter "d", not a digit. > Any thoughts? > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > -- While a transcendent vocabulary is laudable, one must be eternally careful so that the calculated objective of communication does not become ensconced in obscurity. In other words, eschew obfuscation. Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
