Tag:regular

  • Understanding of regular assertion in JavaScript

    Time:2020-11-27

    When I was a junior studying compiler principles, the teacher said something called assertion, but I didn’t understand this course at all, so I couldn’t find anything valuable. Well, forgive me for being lazy and ignorant. The theory is not suitable for me. I’m only suitable for moving bricks. After a long time, some black […]

  • Configure nginx to support pathinfo mode

    Time:2020-11-26

    Original text: https://blog.csdn.net/pangche…The nginx server does not support pathinfo by default. In programs that require pathinfo support (such as ThinkPHP), it cannot support “pathinfo”/ index.php/Home/Index/index ”This kind of website. Original configuration file: location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $DOCUMENT_ROOT$fastcgi_script_name; include fastcgi_params; } After revision: Location ~ \. PHP (. […]

  • Summary of JavaScript regular expression

    Time:2020-11-25

    This paper summarizes the content of JavaScript regular expressions. Table form, clear at a glance. With the help of example graphic explanation. 1、 Metacharacter 2、 Antonym character 3、 Escape character 4、 Repeated matching 5、 Group / capture 6、 Greed and inertia 7、 Modifier example Matches phone numbers that start with 11n, 12n or 1nnn, followed […]

  • Learn regular! Simple examples of hyperbasic

    Time:2020-11-25

    The problem is, in some cases, we should give: http://jb51.net?a=1 This kind of URL address appending parameter becomes: http://jb51.net?a=1&b=2 But how do you know that the same parameter name already exists? For example, in this case: http://jb51.net?a=1&a=2 This is not a big mistake, but the address bar doesn’t look good. Then what shall I do? […]

  • JavaScript regular

    Time:2020-11-21

    Because there is no systematic summary of regular expressions, the work is not used, mainly rely on Baidu ready-made changes do not know how to succeed, determined to learn regular expressions New regular expression Use literal quantities to indicate the beginning and end with a slash var regex = /\s+/g; useRegExpConstructor var regex = new […]

  • Regular expression for checking date / time

    Time:2020-11-17

    In fact, a more general method for date / time verification (in Java) is to give a pattern, parse (the date class in JDK or jodatime can be used). If you do not throw an exception, it is the correct format. Otherwise, it is an incorrect format. For regular verification, it is difficult to write […]

  • Regular expressions as I understand them

    Time:2020-11-16

    After studying regular expression for half a year, we can’t say that we have been learning it all the time. We have to deal with it all the time. How to use regular expression to solve our own problems, and how to optimize it when matching a large number of texts. Slowly feel that regular […]

  • Magic escape of regular basis

    Time:2020-11-11

    1 OverviewThis may be a confusing and even confusing topic, but it is precisely because of this that discussion is necessary.In regular, some special characters, or character sequences, are called metacharacters, such as “?” means the modified subexpression matches 0 or 1 times, “I” indicates the matching pattern ignoring case, and so on. When these […]

  • PHP regular expression core technology full details section 2

    Time:2020-11-9

    Author: geek Xiaojun, a post-80s generation focusing on Web Technology I don’t have to spell smart people, I just need to spell those lazy people, I will certainly surpass most people!CSDN @ geek Xiaojun, original article, B station technology sharingVideo of station B:Bilibili.com 👈Personal blog:cnblogs.com 👈 We went on to the last section 3. classifierQuantifier: […]

  • Overview of nginx and location configuration

    Time:2020-11-7

    1、 What is nginx Nginx is lgor sysoev, the second most visited in Russia rambler.ru Site design and development. Since its release in 2004, with the power of open source, it has been close to maturity and perfection Nginx has rich functions. It can be used as HTTP server or reverse proxy server. It supports […]

  • PHP regular expression core technology full details section 3

    Time:2020-11-7

    Author: geek Xiaojun, a post-80s generation focusing on Web Technology I don’t have to spell smart people, I just need to spell those lazy people, I will certainly surpass most people!CSDN @ geek Xiaojun, original article, B station technology sharingVideo of station B:Bilibili.com 👈Personal blog:cnblogs.com 👈 Let’s go on to the previous section and talk […]

  • JS regular: password strength is more than 8 bits, and contains upper and lower case letters, numbers, half width English symbols

    Time:2020-11-6

    Regular code /^(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[\x21-\x2f\x3a-\x40\x5b-\x60\x7B-\x7F])[\da-zA-Z\x21-\x2f\x3a-\x40\x5b-\x60\x7B-\x7F]{8,}$/ This regular rule[1]: Include numbers Contains uppercase letters Contains lowercase letters Include English Punctuation At least 8 digits If all the above conditions are met, it can be verified Regular interpretation: /^$/rule ^Match start $End of match Note: in the^Within character set matching rules[], indicating negation. For example, HTML tag matching/]+>/Can matchetc. […]