Added possibility to set Pattern (e.g. Patterns.EMAIL_ADDRESS) as a param.

This way it's easier to reuse already created patterns, from e.g. android.util.