Git Product home page Git Product logo

diancanba's Introduction





/*所有用到的正则规范*/

1.用户及商家密码规范:6-16位 英文/下划线/数字
/^[a-zA-Z0-9_]{6,16}$/


2. 用户名规范
/^[_\u4E00-\u9FFFA-Za-z0-9]{2,20}$/i;
/^[_\x{4e00}-\x{9fa5}A-Za-z0-9]{2,20}$/iu                  For PHP

2.商铺电话正则
/^[\d\/- ]*$/

2.送餐速度正则
/^.{0,100}$/

2.邮箱规范

/^[a-zA-Z0-9-._]{1,50}@[a-zA-Z0-9-]{1,65}.(com|net|org|info|biz|([a-z]{2,3}.[a-z]{2}))$/i

3. 地址正则规范: 4-20位 中文/英文/下划线/中划线/数字/.

/^.{4,100}$/

4. 店铺名称正则规范	1-22位任意字符

/^.{1,42}$/

5. 价格的正则规范

/^\d{1,3}(\.)?\d{0,2}$/

5.接受订单用户的正则

/^.{1,20}$/i
6. 电话号码正则8-20位 数字或者{-}
/^(0|86|17951)?(13[0-9]|15[012356789]|18[0-9]|14[57])[0-9]{8}$/

7.商铺简介的正则
/^.{0,500}$/

8.商铺地址的正则
/^.{0,500}$/

9.商铺营业时间的正则
/^.{0,200}$/

/********************************管理员页面的正则********************************************/
账号   /^[a-zA-Z0-9_]{6,16}$/i,
密码  /^[a-zA-Z0-9_-]{6,20}$/i;

diancanba's People

Contributors

lizhug avatar

Watchers

James Cloos avatar Leo avatar

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.