cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rui Alberto L." Gonçalves <rui-l-goncal...@ptinovacao.pt>
Subject regexp matcher
Date Thu, 22 Jul 2004 10:03:16 GMT
Hi all,

I'm trying to use regexp matcher, but I'm missing something.

I have the following matcher: (*1)
<map:match pattern="main-((\/\w+)+)-(\w+)-(\d)-(\d)" type="regexp">

I'm expecting this pipeline to match things like:

main-/mart-duracao-1-1
or
main-/mart/clientes-chamadas-1-1
etc..

the html document returned when matching this regexp contains

<script src="HM_Arrays-/mart/clientes-30409142-day-asc.js" ...

I'm expecting this to match in the regexp: (*2)
<map:match pattern="HM_Arrays-((\/\w+)+)-(\d+)-(\w+)-(\w+).js"
type="regexp">

but the request "M_Arrays-/mart/clientes-30409142-day-asc.js" matches
the first regexp (*1)!!!

What's wrong with this regular expressions?

Any idea? Thanks for your help!

Rui

-- 
Rui Alberto L. Gonçalves <rui-l-goncalves@ptinovacao.pt>
PT Inovação


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message