Search password field (string)

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.

Hi Scott,

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

Graham

Yes it was and very helpful as well.

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

This is what Jon suggested. JONWATERHOUSE@***

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

1 Like

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”?