Re: Parenthesis in regex in URLConf

2011-05-23 Thread Pedram
Thanks but I still have problem. My URLConf is like this: Thank you very much. Problem Solved :) On May 23, 1:39 pm, Tom Evans wrote: > On Mon, May 23, 2011 at 10:25 AM, Pedram wrote: > > Hello, > > I have a regular expression for usernames and I want to use this regex > > in my URLConf and bi

Re: Parenthesis in regex in URLConf

2011-05-23 Thread Tom Evans
On Mon, May 23, 2011 at 10:25 AM, Pedram wrote: > Hello, > I have a regular expression for usernames and I want to use this regex > in my URLConf and bind that to a view. The problem is, I have > parenthesis in my regex which should not consider as *args*. Here's my > regex: > > ^[a-zA-Z0-9]+((\.[

Parenthesis in regex in URLConf

2011-05-23 Thread Pedram
Hello, I have a regular expression for usernames and I want to use this regex in my URLConf and bind that to a view. The problem is, I have parenthesis in my regex which should not consider as *args*. Here's my regex: ^[a-zA-Z0-9]+((\.[a-zA-Z0-9]+)|(_[a-zA-Z-0-9]+))*$ Values in '()' are necessary