Alibabacloud.com offers a wide variety of articles about extended regular expression, easily find your extended regular expression information here online.
This section details the awk built-in functions, which are divided into the following 3 types: arithmetic functions, String functions, other general functions, time functionsFirst, arithmetic function:The following arithmetic function performs the
Awk built-in functions are divided into 4 main types: arithmetic function, string function, time function, General functionFirst, arithmetic functionThe following arithmetic function performs the same operation as a subroutine with the same name as
Awk is a programming language
For text processing and report generation
语法格式awk [option] ‘pattern{action}‘ fileawk [参数] ‘条件{动作}‘ 文件
parameter options for the awk command
-f Specifies the field
MySQL provides standard SQL mode matching and an extended regular expression mode matching format based on Unix utilities such as vi, grep, and sed.I. SQL Mode
SQL pattern matching allows you to use "_" to match any single character, while "%"
MySQL provides standard SQL mode matching and an extended regular expression mode matching format based on Unix utilities such as vi, grep, and sed. Standard SQL mode matching allows you to use "_" to match any single character, while "%" matches
MySql official manual Study Notes 2-MySql fuzzy query and regular expression links: MySql official manual Study Notes 1-MySql easy to use http://www.bkjia.com/database/201210/159522.html MySQL provides standard SQL mode matching and extended regular
The following articles mainly show you how to implement the MySQL matching mode. We all know that the MySQL database provides standard SQL mode matching, and extended regular expression pattern matching formats based on Unix utilities such as vi,
Linux has a lot of text processing tools, this article will introduce several more commonly used text processing tools, such as text viewing tools: Cat and less, text Capture tool: Head and tail, extract text by column tool: Cut, query Text tool by
August 4, the main learning contents are as follows:First, the tool of extracting text: Less,cat,head,tail,cutII. Tools for analyzing text: Wc,sort,diff,patchSecond, grep and regular expressionsThird, Egrep extended regular expression
I. Tools
Regular Expressions (Regular expression, often abbreviated as regex, RegExp, or re): Also known as regular expressions, formal representations, regular expressions, regular expressions, and conventional representations. A regular expression uses a
What is a regular expression?
Describes the features of a text by combining symbols, symbols, and letters and numbers. These characters do not represent the original meaning of the character, but represent control and configuration. The combination
Regular Expressions and Linux text check tools
First, what is a regular expression?In the simplest case, a regular expression is a set of rules and methods defined to process a large number of strings. Or in other words, regular Expressions use
-: Common wildcards:*? []
*: Match any character of any length
? : Match any character
[]: Match any single character in the specified range
[^]: Delimiters, indicating inverse.
Ii. Regular Expression: Is a search and string replacement operation.
Regular Expressions (regexp:regular expression)Regular expressions are divided into two categories:1, the basic regular expression. Basic REGEXP2, extended regular expression. Extened REGEXPBasic Regular Expressions:Character matching. Match any
Regular expression is a kind of requirement to deal with a lot of complicated data, to do fast searching, fast matching, fast substitution and deletion. Common regular expression commands have Grep,sed,awk (Three Musketeers) vi,egrep. The extended
This section details the awk built-in functions, which are divided into the following 3 types: arithmetic functions, String functions, other general functions, time functionsFirst, arithmetic function:The following arithmetic function performs the
Common built-in functions awk built-in string functions
Gsub (R,s) replaces R with s in the entire $
Gsub (R,S,T) replaces R with S in the whole t
Index (S,T) returns the first position of the string T in S
Length (s) returns s
Match (S,R) tests if
Basic syntaxA regular expression is often referred to as a pattern, which is used to describe or match a series of strings that conform to a certain syntactic rule.One, select:|
| Vertical separators indicate selections, such as "Boy|girl"
1.1, the basic definition: www.2cto.comgrep (Global search regular RE) and print out of the line, full search of regular expressions and print out the lines, is a powerful text search tool that can only use basic regular expressions to search for
using the grep ' word1|word2 ' filename is not the right command.
You should use the following command:
1,grep-e ' word1|word2 ' filename2,egrep ' word1|word2 ' filename3,grep ' word1/|word2 ' filenameWhy do I need to add-e, about grep and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.