Re: Searching for strings and URLconfs

2007-06-28 Thread Malcolm Tredinnick
On Thu, 2007-06-28 at 18:46 +, Ryan K wrote: > Hi. I'm trying to setup an re pattern for /search in my URL conf. How > can I match an entire string like "red fox" e.g. > http://example.com/django/search/red%20fox? > I noticed that Google replaces their query parameter q's spaces with > '+'s u

Re: Searching for strings and URLconfs

2007-06-28 Thread Ryan K
Note - I know that I am not using a parameter and it's much easier to do that (I was searching without having created the form yet so this slipped my mind). But how would you capture something like "red fox" in a URLconf pattern? On Jun 28, 2:46 pm, Ryan K <[EMAIL PROTECTED]> wrote: > Hi. I'm try

Searching for strings and URLconfs

2007-06-28 Thread Ryan K
Hi. I'm trying to setup an re pattern for /search in my URL conf. How can I match an entire string like "red fox" e.g. http://example.com/django/search/red%20fox? I noticed that Google replaces their query parameter q's spaces with '+'s using Javascript. Is that a better way to go? Thanks. --~