Regarding RegularExpression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • softimasrinivas
    New Member
    • Aug 2007
    • 3

    Regarding RegularExpression

    I have a textbox that should allow 123,123 format..The Problem is it should accept when you give 1(or)12(or)123( or)123,1(or)123 ,12(or)123,123 format.I Need a Regular Expression for this format. If you remove comma(,)between the format it should not accept.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    What have you tried so far?

    Comment

    • dotneto
      New Member
      • Feb 2007
      • 36

      #3
      Originally posted by softimasrinivas
      I have a textbox that should allow 123,123 format..The Problem is it should accept when you give 1(or)12(or)123( or)123,1(or)123 ,12(or)123,123 format.I Need a Regular Expression for this format. If you remove comma(,)between the format it should not accept.
      Maybe this one?

      ^[1-3]{1,3},[1-3]{1,3}$

      Comment

      • softimasrinivas
        New Member
        • Aug 2007
        • 3

        #4
        RegularExpressi on

        I have a textbox that should allow 123,123 format..The Problem is it should accept when you give 1(or)12(or)123( or)123,1(or)123 ,12(or)123,123 format.I Need a Regular Expression for this format. If you remove comma(,)between the format it should not accept.

        Comment

        • kenobewan
          Recognized Expert Specialist
          • Dec 2006
          • 4871

          #5
          Here is an article that may help:
          one charecter in the textbox

          Comment

          Working...