XSD: Password validation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christian Carlsen

    #1

    XSD: Password validation

    Hello,
    I need to validate a password:
    In order for the password to be accepted the following requirements must be
    met:
    At least one uppercase character (position in password is irrelevant)
    At least one lowercase character (position in password is irrelevant)
    At least one digit (position in password is irrelevant)

    Can anybody help me create a regular expression, for this validation?

    Thanks in advance :)
    //Christian, Denmark
  • Richard Tobin

    #2
    Re: XSD: Password validation

    In article <13b76278.04052 51124.160868a4@ posting.google. com>,
    Christian Carlsen <bgoof@hotmail. com> wrote:
    [color=blue]
    >In order for the password to be accepted the following requirements must be
    >met:
    >At least one uppercase character (position in password is irrelevant)
    >At least one lowercase character (position in password is irrelevant)
    >At least one digit (position in password is irrelevant)
    >
    >Can anybody help me create a regular expression, for this validation?[/color]

    It's probably easiest to do this by defining several types derived in
    a restriction chain, since the pattern facets are effectively anded
    together. Define a type that has at least one uppercase character
    (easy), then derive a type from it by restriction that requires at
    least one lowercase character, then derive a third type that requires
    at least one digit.

    -- Richard

    Comment

    • Christian Carlsen

      #3
      Re: XSD: Password validation

      Thanks for the reply.
      I'll give your solution a try.

      Regards
      Christian

      "Richard Tobin" <richard@cogsci .ed.ac.uk> skrev i en meddelelse
      news:c90euo$14b q$2@pc-news.cogsci.ed. ac.uk...[color=blue]
      > In article <13b76278.04052 51124.160868a4@ posting.google. com>,
      > Christian Carlsen <bgoof@hotmail. com> wrote:
      >[color=green]
      > >In order for the password to be accepted the following requirements must[/color][/color]
      be[color=blue][color=green]
      > >met:
      > >At least one uppercase character (position in password is irrelevant)
      > >At least one lowercase character (position in password is irrelevant)
      > >At least one digit (position in password is irrelevant)
      > >
      > >Can anybody help me create a regular expression, for this validation?[/color]
      >
      > It's probably easiest to do this by defining several types derived in
      > a restriction chain, since the pattern facets are effectively anded
      > together. Define a type that has at least one uppercase character
      > (easy), then derive a type from it by restriction that requires at
      > least one lowercase character, then derive a third type that requires
      > at least one digit.
      >
      > -- Richard[/color]


      Comment

      Working...