The help file specifies:
A tilde (~) placed immediately before  pattern  specifies  a
negative match. That is, it specifies a pattern or a part of a
pattern that does not match the expression or a  part  of  the
expression.  The  match is true only if string and pattern are
of equal length and differ  in  at  least  one  character.

Since you are testing for length and the lengths are the same the tilde
doesn't come into play.
Jerry

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Boydell, Stuart
Sent: Monday, August 04, 2008 5:35 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] [UV] Basic Match...

UV 10.2/aix
Can someone tell me if this would be expected output.
Specifically the tilde modifier on the match pattern appears to not be
working. I would have thought that the last column was the opposite
result...

TEST.MATCH
001 cell = ''
002 for i = 1 to 6
0003   cell := i
004   crt cell, cell match '4X', cell match '~4X'
005 next i
006 end

>RUN TEST.BS TEST.MATCH
1         0         0
12        0         0
123       0         0
1234      1         1
12345     0         0
123456    0         0

Cheers,
Stuart Boydell



**********************************************************************
This email message and any files transmitted with it are confidential and
intended solely for the use of addressed recipient(s). If you have received
this communication in error, please reply to this e-mail to notify the
sender
of its incorrect delivery and then delete it and your reply.  It is your
responsibility to check this email and any attachments for viruses and
defects
before opening or sending them on. Spotless collects information about you
to
provide and market our services. For information about use, disclosure and
access, see our privacy policy at http://www.spotless.com.au
Please consider our environment before printing this email.
**********************************************************************
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to