Alex Rivera | Logout

How to know if a string contains accents

Asked 2010-05-05T14:56:25.253
10

How to know if a string contains accents?

Edit
Report

1 Answer

7
if (Pattern.matches(".*[éèàù].*", input)) {
  ....
}

add whatever accents you want to that list

answered 2010-05-05T15:02:36.970

Your Answer