, this CSS version is more selective and allows for the verification of the URI as necessary, file uploads and direct submission code.
Figure 2
3, [Firefox] web development tool bar
The Web Developer toolbar extension for Firefox Web Page Development toolbar is very popular, has a lot of great features, and has a great HTML and CSS validation tool
FrmCheckId.TextBox1.Value = RanidEnd SubEffects such as:2, corresponding to the verification of the activation sequence numberIn fact, what I do here is based on random code, through a set of rules to generate serial numbers, directly on the code, you can see the validation rules actually I have done the encapsulation, in this class: Mymethod.kusy' Serial number settingsSub Checktheid ()On Error GoTo Err_checkidDim RId as LongDim SId as StringDim MYF
"File MD5 validation Tool" written using Python 2.7.10 tkinter. Due to their own level of problems, there may be some mistakes, I beg you to correct, thank you.Graphical interface:650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/77/70/wKiom1Zn13bQQrW6AAAy18QQ_lk918.png "title=" 002. PNG "alt=" Wkiom1zn13bqqrw6aaay18qq_lk918.png "/>Source:#coding:utf-8#pythontkinter file MD5 Check # environment Pyt
(String value) {Return match (V_unpositive_float,value);} /*** Verify URL* @param value to validate the string* @return If it is a string that conforms to the format, return */public static Boolean URL (String value) {Return match (V_url,value);} /*** Verify user registration. Matches a string consisting of a number, 26 letters, or underscores* @param value to validate the string* @return If it is a string that conforms to the format, return */public static Boolean UserName (String value) {Retu
The Validation tool class provides a way to verify the email format, whether it is IPv4, IPv6, whether Chinese, numeric, or regular expression validation.The source code is as follows: (Click to download-Validateutils.java, Commons-lang-2.6.jar, Httpclient-4.3.3.jar)ImportJava.util.regex.Matcher;ImportJava.util.regex.Pattern;Importorg.apache.commons.lang.StringUtils;Importorg.apache.http.conn.util.InetAddre
Original: Java common regular Expression validation tool class Regexutils.javaSource code: Http://www.zuidaima.com/share/1550463379442688.htmJava Forms register a common regular expression validation tool class, a large collection of commonly used regular expressions.1. Phone number2. Postal code3. QQ4. E-Mail5. Mobile
In the project we use Java often have the use of authentication function, such as mobile phone number, password and other authentication.To summarize, write a tool class to facilitate the use of the next time directly cited.Package com.common.utils;Import Org.apache.commons.lang3.StringUtils;Import Java.util.regex.Matcher;Import Java.util.regex.Pattern;public class Validationutil {public static Boolean IsMobile (String Mobile, Boolean isrequired) {if
Regular expressions are often used to validate various forms, Java forms register common Regular Expression validation tool classes, and common regular expression large collections.
1. Telephone number
2. zip Code
3. QQ
4. E-Mail
5. Mobile phone number
6. URL
7. Whether it is a digital
8. Whether it is Chinese
9. Identity card
10. Domain Name
IP .....
Common
) { Pattern p = pattern.compile ("^[0-9]{11}$"); Matcher m = p.matcher (value); Boolean IsOK = M.find (); return IsOK; }4. Create a random numberpublic static int Buildrandom (int length) {int num = 1;double random = Math.random (); if (Random 5. Get the model, browser type public static String Gettypeas (httpservletrequest request) { string typeas= request.getheader ("User-agent" ); if (Typeas.equals ("") | | Typeas==null) {typeas= "nothing";} return typeas; }5. Get the IP
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.