cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carmona Perez, David" <DPerez...@fcc.es>
Subject Wildcard matcher and **
Date Tue, 06 Apr 2004 16:02:43 GMT
***********************
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


Mime
View raw message