• ## CV2 identification pictures a, B, C, D

Time：2021-8-3

After simple training, this model can only recognize four English letters: ABCD. I trained it to extract the answer. Because the recognition of HKUST, Baidu and Tencent is not very accurate, I trained myself to use it. I hope it can bring convenience to you. The following is the trained model. If you feel that […]

• ## JS regular expression

Time：2021-4-29

JS code function SubmitCk() {var reg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[ a-zA-Z0-9][email protected]([a-zA-Z0-9]+[_|\_|\.]?)*[ a-zA-Z0-9]+\.[a-zA-Z]{2,3}\$/;if (! Reg. Test (\$(“# txtemail”). Val()) { alert (“please input correct email address”) return false}} Regular expression set for verifying numbers  Verification number: ^ [0-9]*\$  Verify n-digit numbers: ^ {D {n}\$  Verify at least n digits: ^ – D {n,}\$  Verify the number of M-N […]

• ## Glacier has revealed an important programming skill it has summed up!

Time：2021-4-16

Write on the front Mastering regular expressions skillfully can help programmers write the most elegant code with the fastest speed. Glacier has combed and summarized the regular expressions used in many years of programming work. These regular expressions can help you save a lot of coding time. Often a simple regular expression can omit a […]

• ## Regular expressions commonly used in spider webbot crawler based on PHP / curl / CodeIgniter

Time：2021-3-21

1、 Check the expression of the number1 digit: ^ [0-9]*\$2 n-digit number: ^ D {n}\$3 at least n digits: ^ D {n,}\$4 M-N digits: ^ D {m, n}\$5 zero and non zero numbers: ^ (0 | 1-9 *)\$6 non zero number with two decimal places at most: ^ (1-9 *) + (. [0-9] {1,2})\$7 positive […]

• ## Regular expression based crawler

Time：2021-3-20

1、 Check the expression of the number1 digit: ^ [0-9]*\$2 n-digit number: ^ D {n}\$3 at least n digits: ^ D {n,}\$4 M-N digits: ^ D {m, n}\$5 zero and non zero numbers: ^ (0 | 1-9 *)\$6 non zero number with two decimal places at most: ^ (1-9 *) + (. [0-9] {1,2})\$7 positive […]

• ## JS regular expression verification collection

Time：2021-2-10

function validate(){ var reg = new RegExp(“^[0-9]*\$”); var obj = document.getElementById(“ID”); if(!reg.test(obj.value)){ Alert (“please enter a number!”); } if(!/^[0-9]*\$/.test(obj.value)){ Alert (“please enter a number!”); } } Common regular expression sets: Verification number: ^ [0-9]*\$ Verify n-digit numbers: ^ {D {n}\$ Verify at least n digits: ^ – D {n,}\$ Verify the number of M-N bits: […]

• ## Common 16 Regular

Time：2020-11-26

1. Password strength test: ^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,10}\$ 2. Valid Chinese: ^[\\u4e00-\\u9fa5]{0,}\$ A string consisting of 26 characters ^\\w+\$ 4. E-mail address validation: [\\w!#\$%&’*+/=?^_`{|}~-]+(?:\\.[\\w!#\$%&’*+/=?^_`{|}~-]+)*@(?:[\\w](?:[\\w-]*[\\w])?\\.)+[\\w](?:[\\w-]*[\\w])? 5. Valid ID card: 15 bits: ^ [1-9] \ \ D {7} ((0 \ \ d) | (1 [0-2]) ((([0 | 1 | 2] \ \ d) | 3 [0-1]) \ \ D {3}\$ […]

• ## Summary of common regular expressions

Time：2020-11-12

Regular expression is a basic skill necessary for web development. Mastering regular expression skillfully can greatly improve your development efficiency, especially in the analysis of web crawler crawling page content. Here are some common regular expressions, hoping to help you Check number Number: ^*\$ N-bit number: ^ D {n}\$ Number of at least N bits: […]

• ## Regular: mobile phone verification, password verification

Time：2020-10-16

Regex regular expression For more daily use of the public class operation method, you can pay attention to the small pulley websitehttp://www.feiaci.com/#/self/… Is it a 26 letter string Is it a string of 26 uppercase letters Is it a string of 26 lowercase letters Is it a number Is it Chinese Is it a mobile […]

• ## The most practical regular expression collation

Time：2020-10-13

Author: moocnetLink:https://zhuanlan.zhihu.com/p/…Source: ZhihuThe copyright belongs to the author. For commercial reprint, please contact the author for authorization. For non-commercial reprint, please indicate the source. 1、 Check the expression of the number 1 digit: ^ [0-9]\$ 2 n-digit number: ^ D {n}\$ 3 at least n digits: ^ D {n,}\$ 4 M-N digits: ^ D {m, […]

• ## Understanding of tiny URL short chain

Time：2020-10-10

Reference link: https://soulmachine.gitbooks…. understand: The requirement is to map a long link to a short link without conflict. The short link can use a random string or be computed from a long link by some algorithms. But is there a proper algorithm, Base64? The actual calculated string may not be short either. So a better […]

• ## Three visualization tools to help you learn JS regular expression!

Time：2020-6-18

Recently, Lao Wang has been fascinated by visualization. For example, algorithm visualization, regular visualization, Vue data hijacking Visualization The running process of the program can’t be seen or touched. If the visualization can be realized completely, the difficulty of understanding will be greatly reduced. Three JS regular visualization tools https://jex.im/regulex https://regexper.com (Internet needs freedom) https://aoxiaoqiang.github.io… […]