Hi, I'm not posting to actually ask for code, but rather, can Perl handle "AND"s in regular expressions? Like... I want to test a pw to make sure it has at least 1 capital letter, 1 lower case letter and one non-alphanumeric letter... but this has to be done in a ONE line regular expresion... anyway, i can get it to work if the format remains the same.. i.e. the non-alpha numeric key is always at the end.. that's easy, but what if the position of each of the aforementioned characters are floating (ie changing places)? ... can perl do:
$var = 'Testuser1$%';
$var = /[A-Z]+ (in any position) AND [a-z]+ (in any posiition) AND \W+ (in any positiion)/;
any input would be greatly appreciated... this is for a config script that is read by an app.. the app accepts only 1 line regular expressions... if i had the abliity to use more than 1 line, this would be simple, however, i don't... help?
$var = 'Testuser1$%';
$var = /[A-Z]+ (in any position) AND [a-z]+ (in any posiition) AND \W+ (in any positiion)/;
any input would be greatly appreciated... this is for a config script that is read by an app.. the app accepts only 1 line regular expressions... if i had the abliity to use more than 1 line, this would be simple, however, i don't... help?