Re: regular expressions

2010-09-14 Thread Imad Elharoussi
thank you I have two paramaters in my url how do I write the request function in my views.py: is it like this: def function(request, parameter1, parameter2)?? 2010/9/14 Shawn Milochik > It depends on whether it can contain whitespace or must contain > whitespace, and whether that whitespace may

Re: regular expressions

2010-09-14 Thread Shawn Milochik
It depends on whether it can contain whitespace or must contain whitespace, and whether that whitespace may appear anywhere in the string or only in a certain location, or after (or before) some other matched pattern. Examples: [\w\s]+ will match "word" and/or whitespace, mixed. \w+[\w\s]+ will