Code Monkey home page Code Monkey logo

original-regexpal's Introduction

Original-Regexpal

regpal 0.1.4 — a JavaScript regular expression tester(汉化版)

regex_pattern

正则表达式校验各种字符串的语法库

正则语法校验工具 RegexTool

  • /.+/ // 判断是否已输入
  • /^1{1}[0-9]{10}$/ // 匹配大陆手机号码,匹配实例:18869923333
  • /^(https?://)?(\w+\.)+[a-zA-Z]+$/ // 匹配全部可能 加 http:// https:// 或 未加 http:// https://,匹配实例:http://www.godcheese.comwww.godcheese.com
  • /^(\w+\.)+[a-zA-Z]+$/ // 匹配未加 http://https://,匹配实例:www.godcheese.com
  • /^(https?://)+(\w+\.)+[a-zA-Z]+$/ // 匹配只加 http://https://,匹配实例:https://www.godcheese.com
  • /^[1-9]{1}[0-9]{4,10}$/ // 匹配qq号码,匹配实例:1000000000
  • /^\w+(\.\w+)?@\w+.+[a-zA-Z]$/ // 匹配email,匹配实例:[email protected]
  • /^\d+$/ // 匹配数字,匹配实例:12

// 判断语言

  • /^[\u2E80-\u9FFF]+$/ // 匹配汉字,其中\u2E80-\u9FFF为汉字unicode内码编码区间,匹配实例:**
  • /^[a-zA-Z]$/ // 匹配英文字母,匹配实例:abc

// 其它

  • /^[初|高][一|二|三]([1-9][0-9]*)班$/u // 匹配中学班级,匹配实例:高(2)班
  • /^[一|二|三|四|五|六]([1-9][0-9]*)班$/u // 匹配小学班级,匹配实例:六(1)班

original-regexpal's People

Contributors

godcheese avatar

Watchers

 avatar  avatar

Forkers

zisungen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.