Re: only utf-8 letters regex pattern

2013-01-16 Thread Adam Mesha
You can explicitly add the Turkish characters to the character class if there are just a few of them. You could also use the UNICODE regex flag and do something like ur'(?u)^[^\W\d_]+$', which will match any string consisting solely of alphabetic unicode characters. 2013/1/16 armagan > Hi, > > I

Re: only utf-8 letters regex pattern

2013-01-16 Thread Jian Chang
you can use unicode. 2013/1/16 armagan > Turkish chars -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...

only utf-8 letters regex pattern

2013-01-16 Thread armagan
Hi, I'm trying to use regex patterns in django form. I successed in only letters regex pattern. But form controler declines Turkish chars. I think I must use utf-8 regex. Can you help me? name = forms.RegexField(regex =r'^[a-zA-Z]+$') Thanks for help. -- You received this message because you