cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <jer...@media.demon.co.uk>
Subject Re: problems matching URLs with underscores
Date Thu, 24 Apr 2003 13:44:03 GMT

On Thursday, April 24, 2003, at 02:15 PM, Vadim Gritsenko wrote:

> Jeremy Quinn wrote:
>
>> Hi All
>>
>> I am having a strange problem matching URLs with underscores in them.
>>
>> ie. /press/press_17  (and /easy/press/press_17)
>>
>> should be matched by:
>>
>>     <map:match pattern="^(easy/)?(\w*)/(\w*)$" type="regexp">
>
>
> Ain't bugzilla wonderful thing? :-P
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4057

Whoa!

Thanks Vadim.

Thing is ...... this match (below) also does not work in Cocoon (on the 
same URL), while it does work in BBedit, is this a related regexp 
problem?

	<map:match pattern="^(easy/)?([a-z_0-9]*)/([a-z_0-9]*)$" type="regexp">

but there does seem to be a workaround:

	<map:match pattern="^(easy/)?([\w]*)/([\w]*)$" type="regexp">

works!

(I wonder how long for ;)

Thanks!!!

regards Jeremy


Mime
View raw message