Regular expression
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
I have a regular expression where i enter an image path with certain extention: if i enter C:\Image.jpg it works fine but i enter \\sam\Image.jpg it doesnt work. here is the validation expression: ValidationExpression="[a-zA-Z0_9].*\b(.gif|.GIF|.jpeg|.JPEG|.jpg|.JPG|.bmp|.BMP)\b" how can i add to validation expression to accpt \\ at the beginning. thanks
-
I have a regular expression where i enter an image path with certain extention: if i enter C:\Image.jpg it works fine but i enter \\sam\Image.jpg it doesnt work. here is the validation expression: ValidationExpression="[a-zA-Z0_9].*\b(.gif|.GIF|.jpeg|.JPEG|.jpg|.JPG|.bmp|.BMP)\b" how can i add to validation expression to accpt \\ at the beginning. thanks