On 10/16/07, Pythoni <[EMAIL PROTECTED]> wrote:
> Thanks a lot for help.It works well for , e.g. John Smith
> but what if a user inserts John.Smith ( period instead of space)?
> I tried to add a period
This is the point where you really want to pause and read Python's
regular-expression
On 10/16/07, Pythoni <[EMAIL PROTECTED]> wrote:
...
> so I have in urls.py
> (r'^Myscript/(?P\w+)/','miproject.apps.mi.views.mi.Myscript'),
>
> it works only ifNameis one word, e.g. John.
You'll see documentation of python's re syntax here:
http://docs.python.org/lib/re-syntax.html
Hi,
I need a URL like this
My script is called like this
http://myserver.com/Myscript/Name/
where name is a parameter
so I have in urls.py
(r'^Myscript/(?P\w+)/','miproject.apps.mi.views.mi.Myscript'),
it works only ifNameis one word, e.g. John.
If it is e.g. John Smith it does not
3 matches
Mail list logo