www.webdeveloper.com
Results 1 to 2 of 2

Thread: help with regex

  1. #1
    Join Date
    Jan 2010
    Location
    Perth
    Posts
    133

    help with regex

    Hello,

    I need regex for the following.

    An input field that at the very least would contain either an S or an L(non-case sesnsitive) and a series of numbers. I'm useless with regex.

    I'm building it for a C# application.

    Any help would be appreciated.

  2. #2
    Join Date
    Jan 2010
    Location
    Perth
    Posts
    133
    thanks again guys.
    Code:
     if(System.Text.RegularExpressions.Regex.IsMatch(location,"^[l-sL-S0-9]+$", System.Text.RegularExpressions.RegexOptions.IgnoreCase)){

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles