"re: pattern matching"

Terrence Burke t.e.burke@dundee.ac.uk
Thu, 13 Dec 2001 13:18:45 -0000


It looks as if  \  allows NOT for precisely the next character, unless 
the next character is  !   --  in which the next character immediately 
following  !  is linked with  \
And you clearly do not want to check for the  (  character.

Probably the answer is to test the string input (from a terminal via a 
screen or Quiz|QTP prompt, or from a data file) against the two 
patterns  (^|#)(\!@)*  and  (^|#)(\,)*   ----    or maybe, instead of the 
second of these use  (^|#)(\!,)* since my tests show they give the 
same result.

               Regards
                   Terry Burke



> Sorry, but this one gives an error during parsing :*E* Invalid pattern
> <char>.
> 
> "(^|#)(\(,|!@))*"
> 
> Chris
> -----Original Message-----
> From: Johan Koelewijn [mailto:j.koelewijn@thegreenery.com]
> Sent: 13 December 2001 10:23
> To: mx% powerh-l@lists.swau.edu
> Subject: "pattern matching"
> 
> 
> Dear list,
> 
> A question about patterns :
> 
> I use the following pattern (^|#)(\!@)*  which means : On the first
> position a character or digit, for the rest of the item anything but a
> @. I want to disable the use of both the comma (",") and the @
> character,  not only the @.
> 
> How can i do this ?
> 
> Johan Koelewijn
> 
> Greenery International B.V.
> 
> 
> = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Mailing list: powerh-l@lists.swau.edu
> Subscribe: "subscribe" in message body to
> powerh-l-request@lists.swau.edu Unsubscribe: "unsubscribe" in message
> body to powerh-l-request@lists.swau.edu
> http://lists.swau.edu/mailman/listinfo/powerh-l This list is closed,
> thus to post to the list you must be a subscriber.
> ----------------------------------------------------------------------
> ------ ---- Date: Thu, 13 Dec 2001  11:17:56 +0100
> 
> 
> 
> ----------------------------------------------------------------------
> -
> 
> Any views expressed in this message are those of the sender and not
> necessarily those of CCA Group.  The unauthorized use, disclosure,
> copying or alteration of this message is forbidden.  The contents of
> this message may be confidential and/or privileged, copyright CCA
> Group and are intended solely for the use of the individual or entity
> to whom they are addressed.  Whilst this message has been scanned, CCA
> Group cannot guarantee that it is virus free or compatible with your
> systems and accepts no responsibility for any loss or damage arising
> from its use. The recipient is advised to run their own anti-virus
> software. If you receive this message in error please contact
> postmaster@ccagroup.co.uk immediately, destroy any copies and delete
> it from your computer systems.
> 
> 
> = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Mailing list: powerh-l@lists.swau.edu
> Subscribe: "subscribe" in message body to
> powerh-l-request@lists.swau.edu Unsubscribe: "unsubscribe" in message
> body to powerh-l-request@lists.swau.edu
> http://lists.swau.edu/mailman/listinfo/powerh-l This list is closed,
> thus to post to the list you must be a subscriber.


Dr T E Burke
Admin Information Systems
University of Dundee
Dundee  DD1 4HN
Phone 01382 344022