1 / 4

Introduction to Regular Expression for sed & awk

Introduction to Regular Expression for sed & awk. by Susan Lukose. Regular Expression. Regular Expression way to match text with patterns. Regular Expression. {n}    Match exactly n times {n,}   Match at least n times { n,m }  Match at least n but not more than m times.

schuyler
Download Presentation

Introduction to Regular Expression for sed & awk

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Regular Expression for sed & awk by Susan Lukose

  2. Regular Expression • Regular Expression way to match text with patterns

  3. Regular Expression • {n}    Match exactly n times {n,}   Match at least n times {n,m}  Match at least n but not more than m times

  4. Regular Expression • Grouping could be done with () • (ab) • gg(ab)*gg • Class could be specified [] • [abc] Match any of a, b, and c. • [a-z] Match any character between a and z. (ASCII order) • [^abc] A caret ^ at the beginning indicates "not". In this case, match anything other than a, b, or c. • regular expression should be specified between // • Special characters like ^, $, . etc.. Could be matched by escaping with \

More Related