Le 27/08/2012 22:55, Tommi Mäkitalo a écrit :
> Hi,
>
> \d is just not a recognized pattern. Tntnet uses POSIX extended regular
> expressions. You can find the documentation about that in the man page
> regex(7). Try [0-9] instead.
>
> Tommi
>
> Am 27.08.2012 19:00, schrieb Jean-Michel Caricand:
>> Hello,
>>
>> I want some information about mapping url.
>>
>> When I use this , all  that works fine :)
>>
>> URL tested : /authors/1
>>
>> <mapping>
>>        <target>authors_GET@Test</target>
>>        <url>^/authors/1$</url>
>>        <method>GET</method>
>> </mapping>
>>
>> Result :
>>
>> Hello from authors_GET@Test
>>
>> but with :
>>
>> <mapping>
>>        <target>authors_GET@Test</target>
>>        <url>^/authors/\d+$</url>
>>        <method>GET</method>
>> </mapping>
>>
>> Result :
>>
>> Error
>> Not Found: vhost: localhost:8000 /authors/1
>>
>> I get this error. Have you got an idea ?
>>
>> Thank,
>>
>> Jean-Michel
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Tntnet-general mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/tntnet-general
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Tntnet-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tntnet-general
Hi Tommi,

I'am a Perl developer, then I like \d, \w, ... :)

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to