Reference no: EM132244675
Assignment Project - Pattern Search Script
Prompt - Your task for this project is to create a simple pattern search script. This script emphasizes the importance of regular expressions and their utility for searching, replacing, and managing large volumes of textual data.
You will working on this project in the Project Four: Pattern Search and Replace Script Draft module in Codio. Following the directions in that module, you will also be able to determine the exact placement of the comments you will need to make in the code. Follow the directions in the module in Codio to walk through the activity.
Your script should do the following three things:
1. Define a regular expression pattern to search for non alphanumeric values in a provided paragraph and output the number of matches to the console.
2. Define a regular expression pattern to search for a two-word sequence separated by dashes and colons and output the number of matches to the console.
3. Define a regular expression pattern to replace the dashes and colons Identified in the previous search.
Specifically, your script should address the following critical elements:
I. In Your Script (Annotated Text File)
Refer to the directions in the module In Codio for how to export out and comment your completed script.
A. Identify an example of the use of a search using literal characters in the script using comments in your code.
B. Identify an example of the use of a search for sequences and ranges in the script using comments in your code.
C. Identify an example of a use of search for special characters and wildcards in the script using comments in your code.
II. Applying Your Experience
Making mistakes when you learn to write code is common. It is part of learning. What is important is developing the skill of learning how to understand your errors and then fix them (debugging). For this part of your final project, you will respond to the following:
a) Reflecting on your experience with this activity, explain the importance of knowing how and when to use a search using literal characters, for sequences and ranges, and for special characters and wildcards. Support your response with examples from the activity of the types of errors and your method for fixing them.
Note - This project is in Codio. The Instructions and screenshots of the step by step instructions from codio are attached.
Attachment:- Assignment File.rar