[Tutor] need help with a regular expression
Andre Engels
andreengels at gmail.com
Sat Jun 28 17:40:14 CEST 2008
On Sat, Jun 28, 2008 at 3:21 PM, Lie Ryan <lie.1296 at gmail.com> wrote:
> > I think
> >
> > _{0,3}[A-Z](\-?[A-Z0-9])+
> >
> > will do what you are looking for.
>
> That, doesn't allow single hyphen, which his requirement allowed as long
> as it (the hypehn) is not as the first or last character.
The \-? allows a hyphen, doesn't it?
--
Andre Engels, andreengels at gmail.com
ICQ: 6260644 -- Skype: a_engels
More information about the Tutor
mailing list