On Fri, 12 Dec 2014 11:20:21 -0600, Jon Butler <jon.but...@fepoc.com> 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN
I'm running into the same kind of issue when trying to search on a string like 
this
1234abcd 
On my PC Editor I can use 
([0-9]{4})(\w+)

On zOS if I try 
f r'([0-9]{4})(\w+)'
I get 
No CHARS '([0-9]{4})(\w+)' found

I looked online for how to search on words (which is what \w does) with Posix 
and it didn't look like there was an option.  But I tried some of the other 
Posix specific searches like
f r'[:alpha:]' and it didn't behave like a search for any alphabetic character, 
rather it found matches for A and L and P and so on in my file.  So not sure if 
ISPF Regex is POSIX ERE.

----------------------------------------------------------------------
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