C
clintonG
Two regular expression questions in a row -- we're on a roll here ;-)
I have this...
<asp:RegularExpressionValidator
ID="Validator1" runat="server"
ControlToValidate="TextBox1"
EnableViewState="False"
ValidationExpression="^[-\w\d\.]$"
ErrorMessage='Disallowed Data Entry. Review Usage Notes.'
Display="Dynamic"
Font-Bold="True" />
It is supposed to allow any alphanumeric character, underscore or hyphen
delineated with a dot character. When ommiting the ^ and $ characters the
expression works fine in this RegEx tool [1] that runs in the webpage but
the expression won't work in my application no matter what I type into the
textbox. This is very puzzeling. Any insight here?
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
[1] http://www.sweeting.org/mark/html/revalid.php
I have this...
<asp:RegularExpressionValidator
ID="Validator1" runat="server"
ControlToValidate="TextBox1"
EnableViewState="False"
ValidationExpression="^[-\w\d\.]$"
ErrorMessage='Disallowed Data Entry. Review Usage Notes.'
Display="Dynamic"
Font-Bold="True" />
It is supposed to allow any alphanumeric character, underscore or hyphen
delineated with a dot character. When ommiting the ^ and $ characters the
expression works fine in this RegEx tool [1] that runs in the webpage but
the expression won't work in my application no matter what I type into the
textbox. This is very puzzeling. Any insight here?
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
[1] http://www.sweeting.org/mark/html/revalid.php