On 01/15/2011 08:48 PM, Jean-Francois wrote:
> Hi,
>
> I try to match the following url with one regex
>
> /hello
> /hello/
> /hello/world
> /hello/world/
>
>
> world is a variable, I can put toto instead
>
> Thanks !
What was the regex you tried, and where did it fail? I'm no re guru, but
he
On 16/01/2011 01:48, Jean-Francois wrote:
Hi,
I try to match the following url with one regex
/hello
/hello/
/hello/world
/hello/world/
world is a variable, I can put toto instead
The regex is:
^/hello(?:/(?:[a-z]+/?)?)$
Its meaning is:
start of string
characters "/hello"
Hi,
I try to match the following url with one regex
/hello
/hello/
/hello/world
/hello/world/
world is a variable, I can put toto instead
Thanks !
--
http://mail.python.org/mailman/listinfo/python-list