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

Threaded View

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

    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

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured