Composing and Using Regular Expressions

Composing and Using Regular Expressions

Regular expressions became popular with the introduction of the UNIX operating system in 1960s and its text processing tools such as grep and ed.

Write a two to three (2-3) page paper in which you:

  1. Define regular expressions and explain their purpose.
  2. Provide at least three (3) examples which demonstrate the way regular expressions work.
  3. Examine the shortcomings of regular expressions and describe at least two (2) situations where using them might be inappropriate.
  4. Use at least three (3) quality resources in this assignment. Note: Wikipedia and similar Websites do not qualify as quality resources.
  5. Format your assignment according to the following formatting requirements:
    1. Typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.
    2. Include a cover page containing the title of the assignment, the student’s name, the professor’s name, the course title, and the date. The cover page is not included in the required page length.
    3. Include a reference page. Citations and references must follow APA format. The reference page is not included in the required page length.

The specific course learning outcomes associated with this assignment are:

  • Identify and create simple regular expressions.
  • Use technology and information resources to research issues in operating systems.
  • Write clearly and concisely about UNIX / Linux topics using proper writing mechanics and technical style conventions.

 

 

Solution Preview

Composing and Using Regular Expressions

Question One

A regular expression is defined as a special text string that is used to describe a given search pattern. For an expression to be considered to be regular, it must have a specific pattern which matches to the text. A pattern here refers to things that happen in a repeated order. A simple example that may be used is where every third glass out of one hundred glasses is red in color. For such an attribute to be considered as a pattern, it must be inherently compatible with all the rest and must show signs of continuity from one side to another. Other simple examples of patterns include sentences, mobile phone numbers, working hours of people and many more. In programming, it refers to a computer language that is used in different search patterns.

(900 words)

Open chat
Hello
Contact us here via WhatsApp