shell-Regular Expression

Source: Internet
Author: User

One, regular expression
. Represents any single character
650) this.width=650; "height=" src= "http://b287.photo.store.qq.com/psb?/81c1194a-ff39-4e50-b1b1-40057b06260f/ sdbj9wszq8xdepnsuukfasw8eaay*4jnuepopfpw.oo!/b/db8baaaaaaaa&bo=eaeoaqaaaaafeeu! "width=" 376 "style=" vertical-align:top; "alt=" db8baaaaaaaa&bo=eaeoaqaaaaafeeu! "/>
^ Indicates what has been the beginning of what
650) this.width=650; "height=" 204 "src=" http://b288.photo.store.qq.com/psb?/81c1194a-ff39-4e50-b1b1-40057b06260f/ Chqcwpnwu94yzxvt.7j4*nbsu0hmznekwuthmc*5klg!/b/dcabaaaaaaaa&bo=pqhmaaaaaaafefs! "width=" 421 "style=" vertical-align:top; "alt=" dcabaaaaaaaa&bo=pqhmaaaaaaafefs! "/>
$ indicates what has ended
650) this.width=650, "height=", "src=" http://b178.photo.store.qq.com/psb?/81c1194a-ff39-4e50-b1b1-40057b06260f/ z1sbbjkug8qbmd3i9khh32ynahiyxsqwnqc9x6m34*a!/b/dliaaaaaaaaa&bo=xaeaaqaaaaafepc! "width=" 452 "style=" vertical-align:top; "alt=" dliaaaaaaaaa&bo=xaeaaqaaaaafepc! "/>
^$ represents a blank line
650) this.width=650; "height=" src= "http://b288.photo.store.qq.com/psb?/81c1194a-ff39-4e50-b1b1-40057b06260f/ suybdrg6ff9mjs56uwv.*w*zbwuwrmbf4aozf5ququs!/b/dcabaaaaaaaa&bo=qafoaqaaaaafepm! "width=" 424 "style=" vertical-align:top; "alt=" dcabaaaaaaaa&bo=qafoaqaaaaafepm! "/>
[----] matches a single character in parentheses, no matter how many match one of them!!!
650) this.width=650; "height=" 326 "src=" http://b173.photo.store.qq.com/psb?/81c1194a-ff39-4e50-b1b1-40057b06260f/ 11n2yyq0awikjfhftriwzerdjuw5i5co*qirbyvlfl8!/b/dk0aaaaaaaaa&bo=tafgaqaaaaafeme! "width=" 436 "style=" vertical-align:top; "alt=" dk0aaaaaaaaa&bo=tafgaqaaaaafeme! "/>
[] The middle can also 0-9 A-Z to represent a segment of the character
650) this.width=650; "height=" 308 "src=" http://b288.photo.store.qq.com/psb?/81c1194a-ff39-4e50-b1b1-40057b06260f/ qvkx99ibwqtak5xa*sugqic3nari4gdbga58s0vxxce!/b/dcabaaaaaaaa&bo=dqe0aqaaaaafehi! "width=" 373 "style=" vertical-align:top; "alt=" dcabaaaaaaaa&bo=dqe0aqaaaaafehi! "/>
* The user modifies the leading character, indicating that the preceding character appears 0 or more times
650) this.width=650; "height=", "src=" http://b288.photo.store.qq.com/psb?/81c1194a-ff39-4e50-b1b1-40057b06260f/ u73llxpx9hzylxqpyf3zaob0jdnwwa5mxspjwcburtc!/b/dcabaaaaaaaa&bo=rgg0aaaaaaafecg! "width=" 430 "style=" vertical-align:top; "alt=" dcabaaaaaaaa&bo=rgg0aaaaaaafecg! "/>
\? or? Leading character indicates 0 or 1 occurrences
650) this.width=650; "height=" 181 "src=" http://b287.photo.store.qq.com/psb?/81c1194a-ff39-4e50-b1b1-40057b06260f/ godyuctkcweoxehp*bh0anivr4fm9tjedlz*t1hkgs0!/b/db8baaaaaaaa&bo=5wg1aaaaaaafega! "width=" 487 "style=" vertical-align:top; "alt=" db8baaaaaaaa&bo=5wg1aaaaaaafega! "/>
\+ or + leading character indicates 1 or more occurrences
650) this.width=650; "height=" 203 "src=" http://b248.photo.store.qq.com/psb?/81c1194a-ff39-4e50-b1b1-40057b06260f/ far2kz0x5298dqr9qkutc5yzlvj4l3fdvcnb2g3yjdy!/b/dpgaaaaaaaaa&bo=tahlaaaaaaafee0! "width=" 436 "style=" vertical-align:top; "alt=" dpgaaaaaaaaa&bo=tahlaaaaaaafee0! "/>
\{n,x\} indicates a leading character with N to x occurrences
\{n\} Several characters in a row
\{n,\} at least several to infinitely more
650) this.width=650; "height=" 183 "src=" http://b173.photo.store.qq.com/psb?/81c1194a-ff39-4e50-b1b1-40057b06260f/ o6hitz5s.q2okaiq08lvgy6jom0rj2raupqhhcq4bsm!/b/dk0aaaaaaaaa&bo=yag3aaaaaaafee0! "width=" 456 "style=" vertical-align:top; "alt=" dk0aaaaaaaaa&bo=yag3aaaaaaafee0! "/>

\ also use and escape, define meaningful symbols as normal symbols
| or, a|b|c similar to or in a programming language

This article is from the "11627223" blog, please be sure to keep this source http://11637223.blog.51cto.com/11627223/1911982

shell-Regular Expression

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.