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
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
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/
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