note
DrHyde
<p>Or if you don't know what the letter is ...
<p><code>if($myvar =~ /^([A-Za-z])\1*$/) { ... }</code>
<p>That is, match the beginning of the string, then any letter, then any more of that same letter, then the end of the string. Adapt as appropriate for Unicode abominations.
1084787
1084789