0

I'm quite new to React-Native. I'm validating the input from the user for name field with 'match(/^[a-zA-Z ]+$/)' so to prevent input like special character or number. But I need to be able to get Turkish(ş,ü,ö,ı) characters as well, beside English letters. How can I do it?

I hope there is someone that can help me.

jevakallio
  • 35,324
  • 3
  • 105
  • 112
Ali Zeynalov
  • 2,867
  • 8
  • 30
  • 54

1 Answers1

2

Just add them in the character class:

/^[a-zA-Z şüöı]+$/
Toto
  • 89,455
  • 62
  • 89
  • 125