colon and pattern matching
Bill D Michael
Bill.Michael@ipaper.com
Wed, 1 Mar 2000 12:02:50 -0600
VMS - Going from 7.10 to 8.10, had to change the PATTERN RESERVED line in our
PDL, change "[]=;&" to "[]:=;_&". (Added the : and the _.) So it WASN'T in 7.10
VMS. ????
Bill
"Deskin, Bob" <Bob.Deskin@Cognos.COM> on 03/01/2000 11:23:53 AM
To: "'Powerhouse List'" <powerh-l@lists.swau.edu>
cc: (bcc: Bill D Michael/Dallas/IPAPER)
Subject: RE: colon and pattern matching
Looks like the colon is being used as a metacharacter at the PH 8 level. I
did two tests in QUIZ:
DEFINE A CHAR*4 = "YES" IF MATCHPATTERN(":","!:")
DEFINE B CHAR*4 = "YES" IF MATCHPATTERN(":","\:")
and got YES to both. According to development it's not matching anything and
is just reserved. I expect that at the 8 level it was reserved because it
was used on OpenVMS 7.10.
Bob Deskin
PowerHouse Web Product Manager and Senior Product Advisor
Application Development Tools, Cognos Inc.
bob.deskin@cognos.com (613) 738-1338 ext 7268 FAX: (613) 727-1178
3755 Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9 CANADA
-----Original Message-----
From: Pickering, John (NORBORD) [mailto:PICKERIJ@norbord.com]
Sent: February 29, 2000 5:21 PM
To: 'Powerhouse List'; 'Darren Reely'
Subject: RE: colon and pattern matching
>On Solaris 2.6, PH 813.D1 the following is true.
>matchpattern("ABC:DEF","^^^!:^^^")
>
>Note the use of the exclamation mark.
>
>Darren
Ditto for 8.19. Which implies that PH is treating it as a metacharacter. So
what does it mean by itself?
>"Pickering, John (NORBORD)" wrote:
>>
>> What does the colon mean in pattern matching?
>>
>> In my manual it is not in the list of non-alpha and non-numeric special
>> characters which match themselves, it is not in the list of defined
>> metacharacters and it is not in the list of metacharacters reserved for
>> future expansion.
>>
>> And matchpattern("ABC:DEF","^^^:^^^") is false :-(
>>
>> John Pickering
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.