PHP: Check alphabetic characters from any latin-based language?
How about this regex:
^\p{Latin}+$
Working regex example:
https://regex101.com/r/I5b2mC/1
This might work
[^\P{latin}\s\p{Punctuation}]
Its all latin, but not punctuation nor whitespace.
where \P
means NOT this property
and \p
means this property.
Put it in a negative class its
NOT, NOT Latin = Include All Latin
NOT Punctuation = Exclude Punctuation
NOT Whitespace = Exclude Whitespace