using pattern to find match word combination