Regular Expression for textboxes and fileUpload and other tools


Regular Expression for textboxes and fileUpload and other tools



Regular Expression for allowing Word Document and PDF files only
([a-zA-Z0-9\s_\\.\-:])+(.doc|.docx|.pdf)$
او
^.*\.(pdf|PDF)$


Regular Expression for allowing Image files only
^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.gif|.jpeg|.jpg|.png)$
او
([a-zA-Z0-9\s_\\.\-:])+(.png|.jpg|.gif)$

Regular Expression for allowing Text files only
([a-zA-Z0-9\s_\\.\-:])+(.txt)$

Regular Expression for allowing Excel files only
([a-zA-Z0-9\s_\\.\-:])+(.xls|.xlsx)$

احرف وارقام انكليزية
^[a-zA-Z0-9]*$
عنوان موقع الكتروني
http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?
ارقام فقط
[0-9]+

(dd/mm/yyyy)
^(((((0[1-9])|(1\d)|(2[0-8]))\/((0[1-9])|(1[0-2])))|((31\/((0[13578])|(1[02])))|((29|30)\/((0[1,3-9])|(1[0-2])))))\/((20[0-9][0-9])|(19[0-9][0-9])))|((29\/02\/(19|20)(([02468][048])|([13579][26]))))$


Mobile
^([7-9]{1})([0-9]{9})$
او
\d{10}
او
[0-9]+



Visual Basic ASP.NET V.b ASP الفجوال بيسك

Regular Expression for textboxes and fileUpload and other tools Reviewed by حامد طالب العراقي on 4/06/2017 08:32:00 م Rating: 5

ليست هناك تعليقات:

نموذج الاتصال

الاسم

بريد إلكتروني *

رسالة *

يتم التشغيل بواسطة Blogger.