This regex is perfect for me.
^([ \u00c0-\u01ffa-zA-Z'\-])+$
It works fine in php environments using preg_match(), but doesn’t work everywhere.
It matches Jérémie O'Co-nor
so I think it matches all UTF-8 names.
More Related Contents:
- Slice an url with regex – php [closed]
- Regex plus vs star difference? [duplicate]
- How to extract img src, title and alt from html using php? [duplicate]
- Matching Unicode letter characters in PCRE/PHP
- PHP Regex to get youtube video ID?
- Remove multiple whitespaces
- Variable-length lookbehind-assertion alternatives for regular expressions
- PHP Regular expression to match keyword outside HTML tag
- Parse a CSS file with PHP
- PHP Regex to check date is in YYYY-MM-DD format
- Need a good regex to convert URLs to links but leave existing links alone
- file_get_contents not working?
- Validating Crontab Entries with PHP
- PHP regular expression – filter number only
- Unknown modifier ‘/’ error in PHP [duplicate]
- ffmpeg Progress Bar – Encoding Percentage in PHP
- Find JSON strings in a string
- laravel trailing Slashes redirect to localhost
- How to find a whole word in a string in PHP without accidental matches?
- How to remove square brackets and anything between them with a regex?
- Regex for names with special characters (Unicode)
- How to get all captures of subgroup matches with preg_match_all()? [duplicate]
- How to replace all XHTML/HTML line breaks () with new lines?
- How can I validate regex?
- Regular expression for a string that must contain minimum 14 characters, where at minimum 2 are numbers, and at minimum 6 are letters
- How to validate phone number using PHP? [duplicate]
- What does [\S\s]* mean in regex in PHP?
- UTF-8 in PHP regular expressions [duplicate]
- Get non-numeric characters then number on each line of a block of texf
- Validate date format in php