I think sun xi wrote: > Hi, everybody > Given a set of facts: > (mail (content "AAAxxx")) > (mail (content "BBByyy")) > (mail (content "CCCxxx")) > (mail (content "AAAyyy")) > > Can somebody guide me how to find the mails whose content begin with "AAA" ?
A pattern to do this could just look like (mail (content ?c&:(?c startsWith AAA))) Here I'm calling the java.lang.String function "startsWith" to do the work. You could use this pattern either in a rule or in a query. --------------------------------------------------------- Ernest Friedman-Hill Science and Engineering PSEs 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] --------------------------------------------------------------------