in reply to Simple Regex for Alpha string
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")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: Simple Regex for Alpha string
by jlongino (Parson) on Nov 14, 2001 at 02:13 UTC |