Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Matching strings with different case

Last post 08-13-2008, 9:40 PM by ddrudik. 1 replies.
Sort Posts: Previous Next
  •  08-13-2008, 8:35 PM 45323

    Matching strings with different case

    Hi all,

    I have a process which checks users email and password against predefined patterns. So far over 50 patterns have been implemented. The process itself is a black box. I pass users email and password as a singlestring sepatated by TAB and list of regex (one for each pattern). If there's a match pattern id is returned. Now I got a request to implement a new pattern which I have problem with. The pattern is

    • Check if the first 8 charachters of email address is the same as the first 8 charachters of password. Email is in any case; password is upper case. Converting input string to upper/lower case is not an option as it would break other patterns.

    Any help would be appreciated.

    Thanks in adwance

     

    ID

  •  08-13-2008, 9:40 PM 45324 in reply to 45323

    Re: Matching strings with different case

    Raw Match Pattern:
    (?i)(.{8})\t(?!\1)


View as RSS news feed in XML