Re: Regex password length

2007-12-14 Thread [EMAIL PROTECTED]
Resolved. All works as spected. The problem was that the source string wasn't the correct one, not the regex. Was a stupid mistake. Thanks any way for the reply Alfonso On Dec 13, 12:10 am, [EMAIL PROTECTED] (Tom Phoenix) wrote: > On 12/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I'm

Re: Regex password length

2007-12-12 Thread Tom Phoenix
On 12/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm trying to create a regex to ensure a minimum password length. It would seem that you should use the length function. (Also, why should it matter that the string in question is a password?) > I'm trying this: > > $regex= '^.{4,}$' M

Re: Regex password length

2007-12-12 Thread yitzle
You just want the length of a string? $size = length $input; or if ( length $input > $minSize ) { ... } else { ... } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Regex password length

2007-12-12 Thread alfonso . marinmarin
Hi all, I'm trying to create a regex to ensure a minimum password length. I'm trying this: $regex= '^.{4,}$' That work fine exept for, at least, the equal signal (=) For example, if i try 'my=test", it returns false. If i try 'myte=st', that works. If i change 4 for 2 in regex, then the first