如题,
获取到一个字符串,如何将他与若干个字符串模板中的一个想匹配(*表示任意个字符,)
如;模板有:1、 * status  has been down 
            2、Order number:  * has  been cancelled by *
            3、Refer to the * layout section for information on *  file systems.
            4、。。
给一个字符串,如“Order number:  F49952051~002~0200 has been cancelled by lfq”
如何使它在众多模板中找到与它匹配的一个模板(Order number:  * has  been cancelled by *)
谢谢,希望能讲的详细点。