ECO349H5 Lecture Notes - Lecture 12: Grep, Regular Expression, Metacharacter

58 views4 pages
School
Department
Course
Professor

Document Summary

Rat sheets are evaluations of how well you believe your team worked the previous week. Perl has regular expressions embedded in the language. R. e (regular expressions) are a powerful tool for text processing. They allow for the description and parsing of text. With additional support, tools employing regular expressions can modify text and data. Check many files to confirm that each file the word setsize appears exactly as often as. Or that there are the same number of malloc() and free() It can be thought of as checking your code, so that it has the same number of opening and closing braces. Check any number of files and report any occurrence of double words (e. g. the the) Should be case insensitive (ii. e. the the). If you were checking html code then you would have to disregard the html tags. **all regular expressions uses the same symbols - no matter the tool.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related textbook solutions

Related Documents