add a srcipt to test match of a pattern
implemant pattern matcher with multiple match