1

I need create a regular expression that verifies accented character as á é í ó ú

How I fix my regular expression in order to it verifies accented character

/^ [a-z A-Z] {3,10} $/

Simone Carletti
  • 168,884
  • 43
  • 353
  • 360
user3678471
  • 2,163
  • 2
  • 15
  • 17

1 Answers1

0

Just put the accented character in there

/\A[a-zA-Záéíóú]{3,10}\z/

Ruby supports utf8 in your source code.

Mulan
  • 119,326
  • 28
  • 214
  • 246