colon and pattern matching

Murray Scholz murray.scholz@abri.une.edu.au
Wed, 01 Mar 2000 09:04:37 +1100


John,

In VMS environment (powerhouse 710G1) , the colon appears to match
itself.
------------------------------------
>define a1 char*1 = "Y" if matchpattern("ABC:DEF","^^^:^^^") &
>       else "N"
> rep a1
> go
  A1

  Y
------------------------------------------
My little Handbook manual, says that the colon(:) "matches any single
Kanji or 16 bit character" !!
Perhaps there are platform differences in how it is handled ??

Regards
Murray Scholz
Agricultural Business Research Institute
University of New England
Armidale Australia

"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
> Toronto
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> 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.