V
V
v- death2015-10-28 19:20:54
go
v- death, 2015-10-28 19:20:54

How to specify portuguese alphabet in regexp?

Hello. There is a regular season

rxLogin = regexp.MustCompile("^(?:[a-zA-Zа-яА-Я0-9]{1,10})$")

Whatever I did in it to add Portuguese always returns false when using Portuguese.
Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Optimus, 2015-10-28
@vGrabko99

The u modifier doesn't work there? (unicode)
And then the alphabet is something like this:
pt.stackoverflow.com/questions/1700/como-validar-u...

D
Dimonchik, 2015-10-28
@dimonchik2013

alphabet, not encoding?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question