Click to See Complete Forum and Search --> : Error in RegularExpressionValidator Control...


Eulibrius7
05-09-2004, 06:11 PM
Server Error in '/' Application.
--------------------------------------------------------------------------------

parsing "^(([a-zA- Z]:)|(\\{2}\w+)\$?)(\\(\w[\w ].*))+(.mp3|.MP3|.mpeg|.MPEG|.m3u|.M3U)$" - [x-y] range in reverse order. Parameter name: ^(([a-zA- Z]:)|(\\{2}\w+)\$?)(\\(\w[\w ].*))+(.mp3|.MP3|.mpeg|.MPEG|.m3u|.M3U)$
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: parsing "^(([a-zA- Z]:)|(\\{2}\w+)\$?)(\\(\w[\w ].*))+(.mp3|.MP3|.mpeg|.MPEG|.m3u|.M3U)$" - [x-y] range in reverse order. Parameter name: ^(([a-zA- Z]:)|(\\{2}\w+)\$?)(\\(\w[\w ].*))+(.mp3|.MP3|.mpeg|.MPEG|.m3u|.M3U)$

Source Error:


Line 695: </tr>
Line 696: <span id="Span1" runat="Server"></span>
Line 697: <asp:RegularExpressionValidator
Line 698: id="RegularExpressionValidator1" runat="server"
Line 699: ErrorMessage="Only mp3, m3u or mpeg files are

PeOfEo
05-10-2004, 08:56 PM
look's like some of paul jr's wanna be 1337! Jeese, I wish I were better at regex so I could help you. Ill do some reading up on it see if I can't find a problem then. my use of regex is limited, only use it on one page.
http://aspnet.4guysfromrolla.com/articles/022603-1.aspx
this may help.