2017-05-05 31 views

回答

1

试试这个:

(bind ?sentence "The quick brown fox") 
(bind ?word "quick") 
(if (str-index ?word ?sentence) 
    then 
    (printout t "contained" crlf) 
    else 
    (printout t "not contained" crlf)) 

regexp功能让您使用Java的java.util.regexp.Pattern图案更复杂的匹配。

+0

非常感谢。这正是我需要知道的! – ellukeo

相关问题