Question about Regex
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Question about Regex

  1. #1
    Join Date
    May 1999
    Location
    G day Mayt Land
    Posts
    962

    Question about Regex

    Code:
    mTrack = new Regex(@"^%B\d{8,19}\^.{1,26}\^\d{2}(01|02|03|04|05|06|07|08|09|10|11|12)\d{3}((.{9,57})+|\^)\?", RegexOptions.None);

    between the two ^ it says minimum 1 , Maximum 26
    This I imagine could any alpha numeric value.

    How can I ensure that this 1,26 byes do not appear in lowercase.
    Meaning aBCD-3/5 RFG is not allowed
    but ABCD-3/5 RFG is
    mind you only inserting [A-Z] does not allow for - & / to be valid , and that is not what I want
    Cheers
    Last edited by Saeed; May 4th, 2010 at 07:28 AM. Reason: incomplete

  2. #2
    Join Date
    May 2010
    Posts
    9

    Re: Question about Regex

    Google Regular Expression Set's (A set can be defined inside of an open and closed bracket)

    I have attached a small application that I wrote when I was learning regular expressions, the zip file also contains a set example that you can check out.
    Attached Files Attached Files

  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,091

    Re: Question about Regex

    JPederson, it would be more helpful if you supply any form of code, and not just attach the exe.

    Thank you for understanding

    Hannes

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center