It does work, but I think it should be:
```php
''   => '[^/\.]++'
```