Note that "AB\n" will pass your test. This is often a nice convenience, but you can use /^[A-Z]{2}\z/ to disallow trailing newlines.
- tye (but my friends call me "Tye")In reply to (tye)Re: Simple Regex for Alpha string
by tye
in thread Simple Regex for Alpha string
by jlongino
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |