Linux wildcard wildcards regular expression + notepad++

Source: Internet
Author: User

Tagged with: Linux regular expression wildcard notepad++

http://blog.csdn.net/pipisorry/article/details/24143801

wildcard character (bash operation)

There is also a very useful feature in the bash operation Environment, which is the wildcard character (wildcard)! It's even easier to process data with bash!

Common wildcard characters


In addition to wildcard characters, special symbols in the bash environment


Note:

1. In theory, your "file name" try not to use the above characters

2. If the Bash command find can use a wildcard character



Regular expressions

A regular expression is a query string that contains generic characters and some special characters that can extend the ability to find a string, and the regular expression's role in finding and replacing strings is not negligible, it can improve productivity.

Linux special symbols in regular expressions

Note: In the table above [: Alnum:], [: Alpha:], [: Upper:], [: Lower:], [:d igit:] These few must know what the meaning of the representative, because he is more than a A-Z to the use of a-Z to be sure!

base Regular expression character rounding (characters)


Note:

1. Expression Description
\ t tab.
\ n New line.
. matches any character.
match the characters to the left and right of the expression. For example, "AB|BC" matches "AB" or "BC".
[] matches any single character in the list. For example, "[AB]" matches "a" or "B". "[0-9]" matches any number.
[^] matches any single character outside the list. For example, "[^ab]" matches characters other than "a" and "B". "[^0-9]" matches any non-numeric character.
* The characters on the left are matched at any time (0 or more times). For example "be*" matches "B", "Be" or "bee".
+ its left character is matched at least once (1 or more times). For example, "be+" matches "be" or "bee" but does not match "B".
The characters on the left are matched 0 or 1 times. For example "be?" matches "B" or "be" but does not match "bee".
^ The expression on its right is matched at the beginning of a line. For example, "^a" matches only lines that begin with "A".
The expression on its left side is matched at the end of a line. For example, "e$" matches only lines that end with "E" .
() affects the order in which the expression is matched and is used as the grouping token for the expression.
\ Escape character. If you want to use "\" itself, you should use "\ \".

3. Note that the number means [0-9] instead of using \d, such as the Find command-the numeric representation in the regex parameter


The application of regular expressions in notepad++

[notepad++ Regular expression use]

from:http://blog.csdn.net/pipisorry/article/details/24143801

Ref:http://linux.vbird.org/linux_basic/0330regularex.php#basic_regexp


Linux wildcard wildcards regular expression + notepad++

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.