// Check whether it is composed of digitsFunction isDigit (s){Var patrn =/^ [0-9] {1, 20} $ /;If (! Patrn.exe c (s) return falseReturn true}// Check Logon Name: You can enter only 5-20 strings starting with a letter, which can contain numbers, "_",
The following is a code written in php to obtain crawling records of search spider.The following search engines are supported:Record the crawling websites of Baidu, Google, Bing, Yahoo, Soso, Sogou, and Yodao!The php code is as follows:Copy codeThe
Simple Map implementation in javascript
This article describes how to use javascript to implement a simple Map. You can obtain, Judge, delete, and add a map.
The Code is as follows:
/*
* MAP object to implement the MAP function
*
* Interface:
*
WordPress blog record seo/seo.html "target =" _ blank "> search engine spider crawling trace plug-in:1. The Spider Tracker plug-in of the search engine Spider crawling recorder can record the Spider crawling traces of Baidu, Google, Yahoo, Bing,
1. Basic Grammar of regular expressions
Two special symbols ' ^ ' and ' $ '. Their role is to point out the beginning and end of a string, respectively.
Examples are as follows:
"^the": denotes all strings starting with "the" ("There", "the Cat",
※checkmoney ($C _money) checks whether the data is in 99999.99 format
※CHECKEMAILADDR ($C _mailaddr) to determine if it is a valid mailing address
※CHECKWEBADDR ($C _weburl) to determine whether it is a valid URL
※checkempty ($C _char) to determine
So yesterday I seriously did a bit more function, can be a variety of search engine statistical analysis. Can be viewed in multiple time periods. In fact, the code is very simple, in order to more concise, code compression to 6k. Divided into 6
/*
* Map object, realize map function
*
Interface
* Size () Gets the number of map elements
* IsEmpty () to determine if the map is empty
* Clear () Delete all elements of map
* Put (key, value) to add elements (key, value) to the map
*
Search engine spiders visit the site through the remote crawl page to do, we can not use the JS code to obtain the spider agent information, but we can through the image tag, so we can get the spider agent data, through the agent data analysis, you
"Warning": please do not change without permission
"FileName": c_check.inc
"Role": a set of common detection functions
"Author": Sky Ash
"Last Modified Date": 2001/05/11[cxx]
"Variable definition rule": ' C_ ' = character type, ' i_ ' = integral
asp.net| data as a programmer, you must be responsible for the robustness of the program you write, so data verification is an essential part of both business logic and system implementation.
I have summed up a kind of asp.net (C #) Data
javascript| Date
How to use JavaScript to determine whether the date of entry is legal
function Isvalidyear (psyear){var syear = new String (psyear);
if (psyear==null){return false;}
if (isNaN (psyear) ==true){return false;}
if (Syear = ""){return
javascript| Date | Web page
How to use JavaScript to determine whether the date of entry is legal
function Isvalidyear (psyear){var syear = new String (psyear);
if (psyear==null){return false;}
if (isNaN (psyear) ==true){return false;}
if (Syear = ""
Program | access | statistics | spiders
Search engine spiders visit the site through the remote crawl page to do, we can not use the JS code to obtain the spider agent information, but we can through the image tag, so we can get the spider agent
1. Basic syntax for regular expressions
Two special symbols ' ^ ' and ' $ '. Their role is to indicate the beginning and end of a string, respectively. Examples are as follows:
"^the": denotes all strings starting with "the" ("There", "the Cat",
Technology sharing: Anti-debugging with exceptions
0 × 01 IntroductionSome articles have introduced how to combat debuggers by detecting exceptions. The idea is simple: depending on the design intent, the debugger will handle specific exceptions. If
In JavaScript, determine whether a string is in the format of an e-mail message:if(Formname.email.value!=formname.email.value.match (/^\w +[@]\w +[.) [\w.] +$/) {alert ("Your email format is wrong!" "); Formname.email.focus (); return false; }
A good PHP verification class
/**
* Verification class
*
* @ Lastmodify 5-5-16
* @ Author jy625
*/
Class VerifyAction {
/**
* Whether it is null
*/
Public static function
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.