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
  • 173,507
  • 49
  • 363
  • 364
user3678471
  • 2,373
  • 2
  • 17
  • 18

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
  • 129,518
  • 31
  • 228
  • 259