colon and pattern matching

Deskin, Bob Bob.Deskin@Cognos.COM
Wed, 1 Mar 2000 12:23:53 -0500


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.