Create a simple pattern search script

Assignment Help Python Programming
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

Reference no: EM132244675

Questions Cloud

The components of being business leader : What are the components of being a business leader?
Prepare a research paper-the americans with disabilities act : BUS 385 Business Law: Prepare a research paper on the topic of The Americans with Disabilities Act.
Large national department store chain for the past year : You have been working part–time for a large national department store chain for the past year.
Identify some of the opportunities the program has : Identify some of the opportunities the program (as you have structured it in your logic model) has to potentially enhance the realization of participants'.
Create a simple pattern search script : Your task for this project is to create a simple pattern search script. Define a regular expression pattern to search for non alphanumeric values
Would you choose price skimming-penetration pricing strategy : You are thinking of expanding into the Cleveland market. Would you choose a price skimming or penetration pricing strategy? Why?
Examine assumptions and limitations of possible connection : Examine the assumptions and limitations of the possible connection between the researcher's chosen variables. Identify and describe other statistical tests.
What was the initial target price for the service : What was the initial target price for the service? What drivers of value did the market research reveal.
Solid work and creativity and has been twice promoted : She has consistently been recognized for her solid work and creativity and has been twice promoted.

Reviews

len2244675

2/27/2019 9:40:53 PM

This project is in Codio. The Instructions and screenshots of the step by step instructions from codio are attached. Please be sure to remove and replace the instructional notes in the code and replace with simplified notes that explain each line of code. -Also, A one paragraph reflection is required. In this separate 1 paragraph, please explain some of the biggest challenges or lessons learned.

len2244675

2/27/2019 9:40:48 PM

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. Final Project Rubric - Guidelines for Submission: Your submission should include all annotated text files of code for the script, as well a Microsoft Word document that includes the reflection part of your assignment in which you explained the problem solving approaches you employed (critical element II).

len2244675

2/27/2019 9:40:39 PM

Identifies an example of the use of a search using literal characters in the script using comments in your code. Identifies an example of the use of a search using sequences and ranges in the script using comments in your code. Identifies an example of the use of a search using special characters and wildcards in the script using comments in your code. Explains how using regular expressions are useful for finding data and necessary to flexibility, and is supported with examples from the activity about the types of errors and your method for fixing them. Submission is free of errors related use of citations, grammar, spelling, syntax, and organization and is presented in a professional and easy-to- read format.

Write a Review

Python Programming Questions & Answers

  Write a program that generates hundred random numbers

In both Visual Logic and Python languages, write a program that generates 100 random numbers between 0 and 10. Print out the entire list of numbers generated.

  The number of lowercase letters in the file

The number of uppercase letters in the file The number of lowercase letters in the file

  Write a python program that prompts the for the name

Write a PYTHON program that prompts the user for the name of the item and the price of each item, and then simply displays whatever the user typed.

  Write a program that reads the earthquake

Write a program that reads the earthquake data.txt, and to process the earthquake data file and create lists of earthquake magnitudes and their dates.

  Design a python program that prompts the user to enter

Design a PYTHON program that prompts the user to enter a number and then you will build a multiplication table of that size.

  A python program that takes a value from a user and store

You need help writing a Python program that takes a value from a user and stores it in the registry.

  Design flowchart that ask actual value of piece of property

Design a flowchart and Python code that ask for the actual value of a piece of property and displays the assessment value and the property tax.

  Python project description

Grep all required data listed from the 1) to 7) and construct required run file for each step (pnr, drc, lvs, syn, pwr)based upon the choice of technology and process when executing your script.

  Create a rectangularprism class that has instance variables

Create a RectangularPrism class that has three instance variables for the three dimensions of a rectangular prism (length, width, and height).

  When we sort a list of items, we need a basis

When we sort a list of items, we need a basis on which to compare the items to see whether one is bigger than another. If it's a list of numbers, Python just compares the numeric values; if it's a list of strings, Python compares the strings alpha..

  Implementing the card guessing game

CP5639 - IMPLEMENTING THE CARD GUESSING GAME - You are to implement (code in Python) a computer game as outlined in the description

  Why is software configuration management

Why is software configuration management considered an umbrella activity in software engineering?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd