James Gray
1/10/2007 3:13:00 PM
On Jan 7, 2007, at 6:41 PM, Daniel Finnie wrote:
> Oops, that doesn't match {3,6} just {6}.
>
> >> regex = /^([a-z])(?!\1)([a-z])(?!\1|\2)([a-z])(?:(?!\1|\2|\3)([a-
> z]))?(?:(?!\1|\2|\3|\4)([a-z]))?(?:(?!\1|\2|\3|\4|\5)([a-z]))?$/
Wow. That's darn clever, but probably over abusing regular
expressions a bit, don't you think? ;)
James Edward Gray II