in reply to Stumped by regex
Hi brickwall,
I think this would do what you want:
That after and make sure that you have at most a space.
I think this would do what you want:
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
That after and make sure that you have at most a space.
TheMage
Talking Web
Talking Web
|
---|
In Section
Seekers of Perl Wisdom