How to create a regular expression in the right way where it accepts only uppercase and lowercase letters, along with accents?
This is to validate a string
name, I created it as follows:
$String = preg_replace("/([^a-zà-úA-ZÀ-Ú ])/", "", $String);
It works perfectly but with a however, since it comes with the following characters: äåæËÎÏÐðÑ × ÷ ØÝÞß
Is there another way to create without these characters coming together?