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 <armagan.er...@gmail.com>

> 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 are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/n_RDevJyBMgJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Adam Mesha <adam.rai...@gmail.com>
Life is either a daring adventure, or nothing. - Helen Keller

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to