I'm trying to validate a string in PHP using regex; it can only contain letters (including latin letters such as 'á', 'õ', etc) and spaces.
Using preg_replace('/\P{L}/u', '', $ str);
I get rid of everything (including the spaces) but the latin letters. What do I need to change on the regex to include the spaces as well?