Alibabacloud.com offers a wide variety of articles about extended regular expression, easily find your extended regular expression information here online.
MySQL provides standard SQL pattern matching and an extended regular expression based on Unix-like utilities such as VI, grep, and SEDpattern-matching format.The pattern matching of SQL allows you to match any single character with "_", while "%"
Study notes, Source: Experimental building, Link: https://www.shiyanlou.com/courses/9 First, date calculation:1. To determine how big each pet is, you can use the function Timestampdiff () to calculate the difference between the year of the current
-----------------------------Overview-----------------------------------
The
Linux Text Processing tool (the following are commands and tools, and only as a display, not as a modification action)
grep (filtering, but does not support
On the text processing tools of Linuxawk, boss."Feature description"Language for text processing (row, filter), support for regularNR represents the number of rows, $n take a column, $NF the last columnNr==20,nr==30 from 20 rows to 30 rowsFS
Classification of regular expressions
Basic Regular Expressions (basic Regular expression also known as basic RegEx abbreviation Bres)
Extended Regular expression (Extended Regular expression also known as Extended RegEx abbreviation Eres)
This article introduces in detail the usage of LIKE fuzzy query and REGEXP in SQL and some usage of special characters. For more information, see.
This article introduces in detail the usage of LIKE fuzzy query and REGEXP in SQL and some usage of
Application background: We just added a user Luffy, but we don't know what its default shell is.
Q: How do I retrieve a user's default shell?
Solution:
# Grep '^ Luffy \>'/etc/passwd | cut-D:-F7
/Bin/bashf
Through the above method, we get the
1. Basic Regular Expression
A. "^" matching the head of a line. "^" must be the first character in a regular expression, else it only a common character.
B. "$" matching the end of a line. "$" must be the last character in a regular expression, else
Variable:
Local variable: valid only for the current
Environment variable: valid for both the current shell and sub-shell
Export A = 3 define a as a variable and assign 3 to
A = 3
Export a reference does not need to be added &
Export also views
Site Source Files Directory F:\01.prj\site\static_html F:\01.prj\site\static_html Open apache_http.conf 1. Modify the Site Directory Error 1Alias/test f:/01.prj/site/static_html Order Allow,denyAllow from all Workaround: The following page
1.1) grep: is a text Search tool. The so-called metacharacters is not meant literal meaning, meta-character expression control or wildcard functions2) Fgep:fast, does not support regular expressions, when literal representation."Grep"1. Basic
From: http://blog.csdn.net/matrix2003b/archive/2004/07/29/55022.aspx
Use regular expressions to parse C # files (Updated)
Jack H Hansen [2004-07-28]
Keywords
C # Regular Expression (Regular Expression)
For example:
In the current directory, find the file with the suffix. C containing the hello string:
Find.-Name "*. c" | xargs grep-h "hello"
Appendix: (transfer)
1. grep Introduction
Grep (Global Search Regular Expression (re) and print out the
Basic usage of SED
Send: Line Editor (Full Screen Editor: VI)
Sed mode space
By default, the source file is not edited, and only the data in the mode space is processed. After the processing, the screen of the mode space is printed.
Sed [Options] '
Grep, egrep, and regular expressions
All files in Linux: text files are critical and commonly used for text file search.
Linux text search tools: grep, egrep, fgrep, and text search are used to search text files.
File name search is a bash feature
The grep function of a linux Command per day is to find the content specified by PATTERN in a file or standard input. And display the row. Grep -- help can be used to view command parameters. The basic format is grep [OPTION]... PATTERN [FILE]...
Grep command usage1. grep family
Grep: Global search Regular Expression (RE) and Print out the lineThe grep family includes grep, egrep, and fgrep, egrep, and fgrep.Egrep is an extension of grep and supports more metacharacters, equivalent to grep-E.
Regular Expression and file formatting Regular Expression in "laruence's Linux private house dish-basic learning": A string processing method, which processes strings in the unit of action, regular Expressions help users easily find, delete, and
Linux special symbols
Linux special characters
We often follow the special symbols on the keyboard, such (? ,! ,~...) In fact, it has a unique meaning in Linux, which can be roughly divided into three categories: Linux special symbols, wildcards,
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.