I'd think that a surname could contain an apostrophe (') too.
Thus, you might want something like
param("surname")=~/^[\pL\- '.]+$/ and $surname = $1;
Update there are surnames with dots too, so I've added it too.
In reply to Re: Regex for Surnames
by ambrus
in thread Regex for Surnames
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |