Can you help me to integrate letters with accent (such as é, ï , è) in this regex code?

Hi, can you help me to integrate letters with accent in this regex code(., ‘^([AZ]{1,}\s)([AZ]{1}[az]{1,} \s?)+$’)
example: é, ï , è, etc.

Hi @tuumaprojectdata, I have not worked with accents, but maybe this sample should be helpful for you:

[A-zÀ-ú] // accepts lowercase and uppercase characters
[A-zÀ-ÿ] // as above, but including letters with an umlaut (includes [ ] ^ \ × ÷)
[A-Za-zÀ-ÿ] // as above but not including [ ] ^ \
[A-Za-zÀ-ÖØ-öø-ÿ] // as above, but not including [ ] ^ \ × ÷

The community having experience with accents should be able to add more to this post.

1 Like

Salut @Kal_Lam merci pour vos propositions ; je vais les tester voir ce que ça donne

1 Like

Hello @tuumaprojectdata,
In addition to Kal_Lam: You can also add valid single accent letters in the [bracket] list, like A-Zâàæêèéëîïôòœûùüç for French.


Thank you @wroos, ça fonctionne parfaitement

1 Like