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

Thread: Question about Regex

  1. #1
    Join Date
    May 1999
    G day Mayt Land

    Question about Regex

    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
    Last edited by Saeed; May 4th, 2010 at 08:28 AM. Reason: incomplete

  2. #2
    Join Date
    May 2010

    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
    Sunny South Africa

    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


Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center