add Array of Patterns

+ add Array of Patterns
+ Unit Test
+ Doc update
.. not sure about the exclude feature to be a clean way..I did not change any thing about that.