Comparing a substring to a substring
Chris Sharman
chris.sharman@ccagroup.co.uk
Tue, 5 Mar 2002 15:35:38 -0000
Do you mean a specific substring ?
if 0< index(dataitemB, dataitemA[start:len]) ??
Otherwise, if the question is "what's the largest substring of A also found
in B" then that's quite a nasty order n-cubed problem, I think, and you'll
need to simplify it, or do it in a 3gl.
Chris
-----Original Message-----
From: leonard_berkowitz@harvardpilgrim.org
[mailto:leonard_berkowitz@harvardpilgrim.org]
Sent: 05 March 2002 14:47
To: mx% powerh-l@lists.swau.edu
Subject: Comparing a substring to a substring
(Powerhouse 8.19C on the HP3000)
I need to determine whether a substring in data item A exists as a
substring in data item B. I am familiar with:
IF 0 < INDEX (data item B, substring)
Thanks.
===================
Leonard S. Berkowitz
Perot Health Care Systems
(Harvard Pilgrim Health Care account)
voice: 617-509-1212
fax: 617-509-3737
pager: 781-226-2431
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
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: Tue, 5 Mar 2002 09:08:39 -0500
-----------------------------------------------------------------------
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.