Re: URL regex not matching

2012-04-24 Thread Swaroop Shankar V
I changed to your regex and it works fine. Thanks a lot :) Thanks and Regards, Swaroop Shankar V On Sun, Apr 22, 2012 at 2:37 PM, yati sagade wrote: > I think that one also matches upto one whitespace character(space, tab or > newline) within the username(The \s). > > > On Sun, Apr 22, 2012 a

Re: URL regex not matching

2012-04-22 Thread yati sagade
I think that one also matches upto one whitespace character(space, tab or newline) within the username(The \s). On Sun, Apr 22, 2012 at 2:12 PM, Swaroop Shankar V wrote: > Thanks a lot for your reply. I just found an regex from some blog which is > as follows > > (r'^user/([\w\'\.\-]+\s?[\w\'\.\-

Re: URL regex not matching

2012-04-22 Thread Swaroop Shankar V
Thanks a lot for your reply. I just found an regex from some blog which is as follows (r'^user/([\w\'\.\-]+\s?[\w\'\.\-]+)/$','accounts.views.userProfile'), and this seems to be working fine. Have not tested all the use cases for this regex, but anyway username with . (dot) is working fine now.

Re: URL regex not matching

2012-04-22 Thread yati sagade
I'm not sure, but I think this should work - try it out and let us know. r'^user/([\w\-+.@]+)/$' I'm not too good with regexes, either. No one is. Also, characters like "+" are encoded in URLs - so you might want to think of that. On Sun, Apr 22, 2012 at 1:42 PM, Swaroop Shankar V wrote: > Hel