add expandPatterns function

expands a list of patterns to it's content, for further usage
Merge pull request #2 from d0b3rm4n/get-patterns

add expandPatterns function