Allow regex option validation

Usage:

```php
<?php

$resolver->setAllowedValues(array(
    'format' => array(
        // validate date format
        'pattern' => '[ymd]{2,4}-[ymd]{2,4}-[ymd]{2,4}',
        // set case insensitive modifier
        'modifier' => 'i',
    )
));
```