note
reasonablekeith
yup, dumb mistake by me. Also though, I assumed there was a first name here too. So the above regex allows an additional space that it shouldn't. You're probably okay with just the following...
<code>
$name =~ m/^[a-z]+\s?[a-z]+$/i
</code>
...although this does force a minimum length of 2.
<p>
Having said this, if I'd seen [JediWizard]'s reply, I wouldn't have posted mine. I think he nailed it first time (++).
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-425417">
<font size="-2">
---<br/>
<i>my name's not Keith, and I'm not reasonable.</i>
</font>
</div></div>
588095
588108