The first regexp makes sure that you have at least two chars and up to 20, including spaces.m{\A[a-zA-Z][a-zA-Z\s]{0,18}[a-zA-Z]\Z} and (@a=m{\s}g)<=1
In reply to Re: Stumped by regex
by themage
in thread Stumped by regex
by brickwall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |