I have problems with this expression ([A-Za-z]+) how can i add here Estonian special chars ?
Like this ([A-Za-zöüõä]+) ?
How i can add UTF support
Moderator: General Moderators
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
I think something like this:will match unicode code points. Test it though.
Code: Select all
preg_match( '~[\x{4378}-\x{5642}a-z]+~ui', $stuff);- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK