Match Special Letters with PHP Regular Expressions

Regular expressions come with all sorts of peculiarities, one of which I recently ran into when creating a regex within PHP and preg_match.  I was trying to parse strings with the format “Real Name (:username)” when I ran into a problem I would see a lot at Mozilla:  my regular expression wasn’t properly catching “special” […]
The post Match Special Letters with PHP Regular Expressions appeared first on David Walsh Blog.

Link: https://davidwalsh.name/letters-regex