Use str-index. Remember that in Jess, FALSE means false, and anything else means true. str-index returns a number if the second argument is a substring of the first, and FALSE otherwise.
I think Simone Ludwig wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Is it possible to compare two strings e.g. in order to check if s1 is a substring of > s2? > (str-compare command only compares if s1 and s2 are identical.) > > Many thanks > > Simone --------------------------------------------------------- Ernest Friedman-Hill Distributed Systems Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
