C# Web - RegularExpressionValidator

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JustRun
    New Member
    • Mar 2008
    • 127

    C# Web - RegularExpressionValidator

    Hi,

    I have form contains Address field, I need to validate this address to accept:
    Spaces, Enter, those specialCharacte rs [dash, comma and . ]

    I tried this expression [\w+([-+.+,]\w+)*] with the RegularExpressi onValidator but it works only with the folowstop and comma but it disregard the Dash,

    When I tried to add space to it [ \w+([\s+-+.+,]\w+)* ] it didnt accept the SpecialCharacte rs and accepted only the spaces.


    Any help!!
Working...