A
Adam J Knight
Hi all,
I am trying to use the regular expression validator control (1.1).
My code so far:
<asp:regularexpressionvalidator id="regexValQuestionImage"
ControlToValidate="fleGraphic"
Display="None"
ErrorMessage="Invalid image type (gif/jpeg) only."
ValidationExpression=".+\.(gif|GIF|Gif|jpe?g|JPE?G|Jpe?g)"
runat="server"/>
What i want to do is modify the regular expression to allow the text to be
case insensitive? ie( .gif, .GIF, .Gif, .GiF ect).
Anyone got some ideas??
Cheers,
Adam
I am trying to use the regular expression validator control (1.1).
My code so far:
<asp:regularexpressionvalidator id="regexValQuestionImage"
ControlToValidate="fleGraphic"
Display="None"
ErrorMessage="Invalid image type (gif/jpeg) only."
ValidationExpression=".+\.(gif|GIF|Gif|jpe?g|JPE?G|Jpe?g)"
runat="server"/>
What i want to do is modify the regular expression to allow the text to be
case insensitive? ie( .gif, .GIF, .Gif, .GiF ect).
Anyone got some ideas??
Cheers,
Adam