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 python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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