Common JavaScript regular expressions in programming development

time:11-05-22 forum:HTML web page, JS language and code
  This article lists some of the JavaScript regular expression test
[code]/**
* checks used in programming development for positive integer
*/
function isUnsignedInteger (strInteger)
=
var newPar=/^\d. Value, strUnit)
{
var testMoney = Eval (.Quot; /^\\d (\\.\\d{0,.Quot;}). / * validation floating-point number
*/
function checkTextDataForFLOAT (strValue)
{
var regTextFloat = / ^? (\d) * (\.) * * * * Ode]/**
* verify the digital
*/
function checkTextDataForNUMBER (strValue)
{
var regTextNumber = / ^ ]/**
* verifies the English alphabet, and does not distinguish between the
*/
function checkTextDataForENGLISH (strValue)
{
var regTextEnglish = /^.#91; a-zA-Z.#93; ----------------------------
[code]/**
* verifying upper case English alphabet
*/
function checkTextDataForENGLISHUCASE (strValue)
{
var regTextEnglishUCase = /^.#91; ----------------------------------------------------------------
[code]/**
* verifying lowercase English alphabet
*/
function checkTextDataForENGLISHLCASE (strValue)
{
var regTextEnglishLCase = /^.#91; ----------------------------------------------------------------------------------------------------
[code]/**
* verifies English letters and numbers, and does not distinguish between
*/
function checkTextDataForENGLISHNUMBER (strValue)
{
var regTextEnglishNumber = /^.#91; * * $/; <; < Br />return regTextEnglishNumber.test (strValue);
}[/code]
  • 2
  • 3
  • 4

prev:Regular string replacement and partition... next:Ji'nan new residential communities lack ...
post comment
Notice



approved   The walls and towers of the Ji'nan m...   A rural girl's monologue: what's the...   How the deaf and dumb girls become t...   These old photos of Ji'nan, which ha...   What can you eat for 10 dollars? The...
rand   HTML5 finalization 1st anniversary y...   JS's code to judge the PC end jump   Alipay online donation or immediate ...   Let old version IE support HTML5   Interaction between Flash and JS
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com