DBAsupport.com Forums - Powered by vBulletin
Results 1 to 10 of 23

Thread: code to check the password at least one upper case letter

Threaded View

  1. #3
    Join Date
    Jan 2001
    Posts
    2,828
    Hi

    Use regular expression for 10g and above
    Use ow_pattern for other versions

    Code:
    declare
    l_regular_expr VARCHAR2(50) := '[A-Z]';
    begin
    IF REGEXP_INSTR('password',l_regular_expr)>0 then
      dbms_output.put_line('It Worked');
    end if;
    end;
     /
    Code:
    declare
    l_regular_expr VARCHAR2(50) := '[A-Z]';
    begin
    IF REGEXP_INSTR('passWord',l_regular_expr)>0 then
      dbms_output.put_line('It Worked');
    end if;
    end;
    /
    http://www.dba-oracle.com/oow_gettin...xpressions.pdf
    Last edited by hrishy; 10-14-2009 at 05:38 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width