Validation expression

Discussion in 'ASP .Net Web Services' started by pintu, Jan 4, 2007.

  1. pintu

    pintu Guest

    Hello every body..First of All Very Very Happy new year to all of u.

    Today i hav my problem with the validation expression.

    [a-zA-Z0-9/_]*\.(htm|html)\#?[a-zA-Z0-9]*$

    the above expression works fine for "asdf_2.htm" or
    "asdf.htm_2#as123".But my problem is that if i enter "asdf.htmssssss"
    or "asdf.htmssssss_2#as123" it is not showing error. So please help me
    in solving my problem.

    Thanks and regards
    Priyabrata
    pintu, Jan 4, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VSK
    Replies:
    2
    Views:
    2,268
  2. =?iso-8859-1?B?bW9vcJk=?=

    Matching abitrary expression in a regular expression

    =?iso-8859-1?B?bW9vcJk=?=, Dec 1, 2005, in forum: Java
    Replies:
    8
    Views:
    829
    Alan Moore
    Dec 2, 2005
  3. GIMME
    Replies:
    3
    Views:
    11,920
    vforvikash
    Dec 29, 2008
  4. snacktime
    Replies:
    13
    Views:
    553
    Dan Sommers
    Feb 22, 2005
  5. Jason luo
    Replies:
    3
    Views:
    512
    Peter Ammon
    Aug 19, 2004
Loading...

Share This Page