Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Regular Expression Validator

Regular Expression Validator

Scheduled Pinned Locked Moved ASP.NET
regexhelptutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NICE TO MEET
    wrote on last edited by
    #1

    Hi I have a textbox, for that i want to validate using Regular expresson validator, i should accept only, the numerics 0 to 9, after decimal only 2 digits, and also i should restrict a maximum of 7 digits like 1234567 if i use range and regular exp validator, while entering ',' both the validators are displaying error message, so please guide me o achieve all the three validations in regularexpression validator Thanks in advance

    -

    S R M 3 Replies Last reply
    0
    • N NICE TO MEET

      Hi I have a textbox, for that i want to validate using Regular expresson validator, i should accept only, the numerics 0 to 9, after decimal only 2 digits, and also i should restrict a maximum of 7 digits like 1234567 if i use range and regular exp validator, while entering ',' both the validators are displaying error message, so please guide me o achieve all the three validations in regularexpression validator Thanks in advance

      -

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #2

      What code do you wrote for this? What error it shows?

      SSK.

      1 Reply Last reply
      0
      • N NICE TO MEET

        Hi I have a textbox, for that i want to validate using Regular expresson validator, i should accept only, the numerics 0 to 9, after decimal only 2 digits, and also i should restrict a maximum of 7 digits like 1234567 if i use range and regular exp validator, while entering ',' both the validators are displaying error message, so please guide me o achieve all the three validations in regularexpression validator Thanks in advance

        -

        R Offline
        R Offline
        Revathij
        wrote on last edited by
        #3

        try regular expression in this link ... http://regexlib.com/RETester.aspx?regexp_id=235[^]

        1 Reply Last reply
        0
        • N NICE TO MEET

          Hi I have a textbox, for that i want to validate using Regular expresson validator, i should accept only, the numerics 0 to 9, after decimal only 2 digits, and also i should restrict a maximum of 7 digits like 1234567 if i use range and regular exp validator, while entering ',' both the validators are displaying error message, so please guide me o achieve all the three validations in regularexpression validator Thanks in advance

          -

          M Offline
          M Offline
          mangrovecm
          wrote on last edited by
          #4

          Hi Nice, I have a regular exppression to check price of product: "[0-9]{1,3}(\,[0-9]{3})*(\.[0-9]+)?$|^[0-9]+(\.[0-9]+)?$" This is expression accept number such as: 1.450,45. 5.120 45,26 ... Hope that help you. vtkiet05

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups