Search password field (string)


#1

Hi; I have a password field with the following rules. longer than 6 characters, at least 1 upper case letter and at least 1 special character.

Clarion ver 6.3
Also new to string theory version 1.32

Having trouble with searching the password string.

Thanks.


#2

Hi Scott,

Your question has been answered with working code on the softvelocity.clarion.language newsgroup where you posted.

Graham


#3

Yes it was and very helpful as well.


#4

It might be nice to post the answer here so it can be indexed and found via search engines.


#5

This is what Jon suggested. [email protected]***

This worked great.

score = MATCH(pwstring,'[0-9]',Match:Regular)

score += MATCH(pwstring,'[A-Z]',Match:Regular)

if LEN(clip(pwstring))>=8 then score += 1. 

Thanks all


#6

This answers to some different question, not to “search a string longer than 6 characters, at least 1 upper case letter and at least 1 special character”?