title: Can we use regex in symfony2 access control?
body: <p>Can we use regex in access control in symfony2 security?</p>
  
  <pre><code>1) /foo/{id} -- [ROLE_ADMIN]
  2) /foo/{id}/profile --  [IS_AUTHENTICATED_ANONYMOUSLY]
  </code></pre>
  
  <p>Another issue:</p>
  
  <p>If I removed the access_control from my security, still it goes to the Security module and try to <code>Authenticate</code> from <code>Security/Authentication/Provider/AuthProvide</code>.</p>
  
  <p>What should be the ideal behavior? I think it should not authenticate the resource if no <code>access_control</code> is in <code>security.yml</code>.</p>
  
  <p>My firewall configuration is:</p>
  
  <pre><code> firewalls:
      main:
              pattern: ^/
              anonymous: true
              myapp: true
  </code></pre>