Hi Ernest, If I run this script:
; Source string (bind ?s "I feel super :-D") ; Pattern string (bind ?pattern ":-D") ;; Long way (import java.util.regex.Pattern) (import java.util.regex.Matcher) (bind ?objPattern (call Pattern compile ?pattern)) (bind ?objMatcher (call ?objPattern matcher ?s)) (bind ?found1 (?objMatcher find)) (printout t "API WAY = " ?found1 crlf) ;; Short way (bind ?found2 (regexp ?pattern ?s)) (printout t "JESS WAY = " ?found2 crlf) I get: Jess, the Rule Engine for the Java Platform Copyright (C) 2005 Sandia Corporation Jess Version 7.0b1 7/11/2005 API SAYS = TRUE JESS SAYS = FALSE What I am I missing? Cheers, Jason -- ----------------------------------------------------- Morris Technical Solutions LLC www.morristechnicalsolutions.com [EMAIL PROTECTED] phone/fax: 503.692.1088 -------------------------------------------------------------------- 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] --------------------------------------------------------------------
