If you allow only "-", "_" and alphanumeric characters in user slugs
then this should also do it:
^([-_a-z0-9]*[-_a-z][-_a-z0-9]*)$

Then string with at least one non-numeric characted anywhere will be
matched as slug.

On 13 Cze, 01:48, "b logica" <[EMAIL PROTECTED]> wrote:
> On Thu, Jun 12, 2008 at 7:04 PM, Dardo Sordi Bogado
>
> <[EMAIL PROTECTED]> wrote:
>
> >> allowed, anyway. Disallowing numbers shouldn't be such a big deal. Or
> >> just make sure it
> >> can't *begin* with a number:
>
> >> ^([^0-9][-_a-z0-9]+)
>
> > Actually, anything which isn't just numbers will be ok.
>
> Every one of which belongs to the set of strings which do not begin
> with a number.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to