You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Carmona Perez, David" <DP...@fcc.es> on 2004/04/06 18:02:43 UTC
Wildcard matcher and **
***********************
Este correo ha sido procesado por el antivirus del Grupo FCC.
***********-***********
Hi all,
How can I match the following URLs:
- myresource
- /myresource
- myfolder/myresource
but not:
- armyresource
I have tried:
<map:match type="wildcard" pattern="myresource">
...
</map:match>
Problem:
It doesn't match "myresource".
Solutions:
1)
<map:match type="wildcard" pattern="myresource">
...
</map:match>
<map:match type="wildcard" pattern="**/myresource">
...
</map:match>
2)
<map:match type="regexp" pattern="(?:^|/)(.*)$">
...
</map:match>
Does anyone know a better solution?
Thanks in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org