Regular expressions - it's not that hard

        Many people's first reaction when they see regular expressions is that they have a big head and are difficult to learn. They have such a long string of symbols. What is this. Ah! Don't worry. In fact, regular expressions are easy to understand step by step. Don't believe it? Look! catalogue 1, What is a regular e ...

Posted by Crysma on Fri, 03 Dec 2021 13:41:57 -0800

Regular expression {concise and easy to understand}

Why use regular expressions? Regular matching can realize fuzzy matching. In actual development, it is often necessary to match a certain range of data, such as verifying whether the mailbox entered by the user is correct; In addition to @ and other fixed characters, we can't measure and count the other characters we input. At this time, ther ...

Posted by Dollar on Wed, 24 Nov 2021 11:36:37 -0800

Validation -- a feature rich PHP parameter validator

Validation -- a feature rich PHP parameter validator Validation is used to check the validity of background parameters. Easy to use and intuitive. https://github.com/gitHusband/Validation If you have any opinions or ideas, we can communicate and discuss together! As for why I wrote this tool: For background parameters, in theory, t ...

Posted by pstevereynolds on Fri, 19 Nov 2021 19:19:15 -0800

Text processing tool -- grep

1, Text processing tool grep Linux has the tools grep, sed and awk called the three swordsmen of text processing. In this paper, grep 1. Brief introduction grep text filtering tool, fully known as Global search REgrlat expression and Print out the line. You can match the content between large sections of text according to the specified filte ...

Posted by rocket on Thu, 11 Nov 2021 11:31:39 -0800

Nginx Rewrite + regular expression

preface Now Nginx has become the first choice for many companies as front-end proxy pass servers. In practical work, they often encounter a lot of requirements for jump (Rewriting URL). For example, after changing the domain name, you need to keep the old domain name jump to the new domain name, change a web page and jump to a new page, we ...

Posted by landysaccount on Wed, 10 Nov 2021 06:05:24 -0800

Python regular expressions use short notes

A recent Python experiment found that regular expressions and their standard library in py have a lot of points to think about. So I decided to write a short note and I'd like to review it later. noun Because regular expressions are described differently in different literature, here is a list of noun representations that I know: In this no ...

Posted by e1seix on Wed, 03 Nov 2021 09:50:44 -0700

re module matching characters is simple and practical

re.match() find one from scratch re.search() found one** re.findall() find all **Returns a list. If there is no, it is an empty list re.findall('\d','chuan1zhi2')   The result is['1','2'] re.sub() replace re.sub('\d','_','chuan1zhi2')   The result is['chuan_zhi_'] Re.compile** Returns a model p with the same method as re, but with dif ...

Posted by davemwohio on Mon, 01 Nov 2021 20:44:39 -0700

MySQL regular expressions, operators and multi table queries

introduction Regular expressions are special strings used to match text (character set). If you want to extract a phone number from a text file, you can use a regular expression. If you need to find all files with numbers in the middle of the name, you can use a regular expression. If you want to find all duplicate words in a text block, ...

Posted by sgs-techie on Mon, 01 Nov 2021 06:55:49 -0700

mysql database advanced statement - medium

catalogue 1, Regular expression 1. Introduction 2. Common matching types 3. Query mode 2, Operator 1. Arithmetic operator 2. Comparison operator 3. Logical operator (Boolean)   4. Bitwise operator   3, Connection query 1. Inner connection 2. Left connection 3. Right connection summary 1, Regular expression 1. Introduc ...

Posted by candy2126 on Sat, 30 Oct 2021 02:33:32 -0700

Regular expression explanation of Shell script

catalogue 1, Common pipeline commands 1.1 sort command 1.2 uniq command 1.3 tr command 1.4cut command 1.5 examples 1.5.1 statistics of current host connection status 1.5.2 count the number of currently connected hosts 2, Regular expression 2.1 definition of regular expression 2.2 common metacharacters (supported tools: find, grep, eg ...

Posted by delmardata on Tue, 26 Oct 2021 07:04:13 -0700