I should add, what I'm ultimately trying to do is : new
sfValidatorRegex(array('pattern' => '/\d{13}|\d{19}/',
'required'=>true));But it's useless when anything over 13 is allowed.... On Dec 6, 11:30 pm, John Masson <[EMAIL PROTECTED]> wrote: > Hey All, > > Not sure if this is just my bad regex, or a problem with the > sfValidatorRegex... (in 1.1) > > I'm trying to setup a field that is all numeric and can contain either > 13 or 19 digits... no more, no less, and none in between that, just 13 > or 19. > > When it wasn't working, I got back to the basics of the below, and > found while it throws an invalid error when you put less than 13 > digits into the field, you can put as many more than 13 as you > like.... > > Have I just got the wrong regex format (according to this page its > right:http://sunsite.ualberta.ca/Documentation/Misc/perl-5.6.1/pod/perlrequ...) > or have others had this issue too? > > new sfValidatorRegex(array('pattern' => '/\d{13}/', > 'required'=>true)); > > Thanks, > JM --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
