Reference
Common Perl Command Line options
Common unix Commands: perl implements sed awk tr nl
Perl, sed, awk, tr, grep, nl, and other common commandsSed
Task
Sed
Perl
Replace12WithTwelve
sed 's/12/twelve/g'
perl -pe '
One, List
A list is a sequence of values enclosed in parentheses that can be any value or NULL, such as: (1, 5.3, "Hello", 2), empty list: ().Note: A list containing only one numeric value (for example: (43.2)) is different from the value itself
Regular Expressions (Regular expression, abbreviated as Regexp,regex or REGXP), also known as regular expressions, regular expressions, or regular or normalized representations or formal representations, refer to a A single string that describes or
Regular Expressions (Regular Expression, abbreviated as Regexp,regex or REGXP), also known as regular expressions, regular representations or regular expressions, or formal representations or regular representations, refer to a To describe or match
First, Introductionpattern refers to the character of a particular sequence that is searched for in a string, which is included by a backslash:/def/, Mode def. Its usage, such as combining function split, splits a string into multiple words in a
Split it splits the string according to the given pattern, and it is quite handy to decompose the extracted fields with this operator for strings that separate different fields with tabs, colons, whitespace characters, or any symbol. As long as you
Here is the DNA sequence, stored under window F:\perl\data.txt:
Copy Code code as follows:
Aaaaaaaaaaaaaagggggggttttcccccccc
Cccccgtcgtagtaaagtatgcagtagcvg
Ccccccccccggggggggaaaaaaaaaaaaaaattttttat
Aaacg
Here's the
An introduction to regular expressions in Perl
First, Introduction
Two, matching operator
Iii. special characters in the pattern
1, character +
2, characters [] and [^]
3, character * and?
4, escape character
5. Match any letter or number
6, Anchor
Preface
PHP is widely used in the background CGI development of the web, usually after the user data data to obtain a certain result, but if the user input data is incorrect, there will be problems, such as someone's birthday is "February 30"! What
First, Introduction
Pattern refers to the character of a particular sequence that is searched for in a string, which is included by a backslash:/def/, Mode def. Its usage, such as combining function split, splits a string into multiple words in a
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.