How can I create a function in ORACLE to verify the password?
Password must contain:
So far I have achieved the following:
CREATE OR REPLACE FUNCTION dd_pwd_fun(username varchar2, password varchar2) RETURN BOOLEAN IS PWD_STR VARCHAR2 USER_NAME BEGIN PWD_STR = password; USER_NAME=username; IF LENGTH(PWD_STR) < 8 THEN RETURN FALSE; END IF; if regexp_like(:PWD_STR, '^.*[az].*$') -- this is for small letter from a -z and regexp_like(:PWD_STR, '^.*[AZ].*$') -- this is for capital letters and regexp_like(:PWD_STR, '^.*[0-9].*$') -- this is for numbers
This is my first regular expression job, and I need help finding a solution for the last requirement, and I also want to know if I am on the right path.
source share