Question
I need to explain the importance of knowing how and when to use:
A search using literal characters
For sequence and ranges
For special characters and wild cards
I need to support this answer with examples from my script. Please help. ( I need a written answer and explanation my script is complete and running)
140 lorem ipsumLorem ipsum dolor sit-amet consectetur adipiscing elit- Phasellus iaculis velit ac ounc interdum tempor Ut vol
#Assign the outcome to a variable named occurrance sit amet, occurrance. sit amet-re.findallo sitl-l-lamet Jorem ipsum) #Ou
#Replace sitamet and sit-amet with sit amet using the sul #Assign the outcome to a variable named replace results replace re
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

Search using literal characters:

  • The characters sequence or a character whatever you want to find in the data provided by you will be acting as literal characters
  • In the script provided by you, The search is for the all non alphanumeric characters
  • All the special characters found in the given paragraph will be identified through the given regular expression syntax and stored in the results array
  • Sequence and ranges
  • A group of characters from starting character to the ending character, A value between the given minimum and maximum value will be founded by using the sequences and ranges
  • In the given solution the the findall function is written for finding the sit [-:] amet , here the range function acts like any character placed in between the two strings in the given literals will be identified and stored in occurences_sit_amit
  • so, for the given range of literals '- :' the occurences will be in identified in the given sequence sit-amet
  • Special characters and wildcards
  • Except a-z,A-Z,0-9 any other character is identified as a special character
  • usually the characters like @#$%;, will be treated as special characters
  • In the above solved example the findall finds the all the instances of the ant special character except the aplphabets or numbers
  • The regular expression excludes all the alphanumeric characters and stores all the remaining characters
Add a comment
Know the answer?
Add Answer to:
I need to explain the importance of knowing how and when to use: A search using...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Having a little trouble with this assignment. "Please add comments within Script, for the guidance of...

    Having a little trouble with this assignment. "Please add comments within Script, for the guidance of the code and what each function is doing, so i can understand more." Project 4 Draft: Pattern Search PYTHON Introduction Your task for this project is to use regular expressions to discover and modify information from the provided test. The project is broken into two sections: Determine the number of non alpha numeric characters in the lorem_ipsum string. Replace all instances of the words...

  • Problems: Develop a web page that allows a user to try out different text and background...

    Problems: Develop a web page that allows a user to try out different text and background color combinations by clicking buttons. Use Javascript to implement the functionalities. Below are two screen shots of the working application. Clicking the buttons at the bottom changes either the foreground color or the background color. The following descriptions are about the details. Specifically, you have to implement: An HTML file should include the following features (3 points) Some texts (Anything you like) Put the...

  • Text: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore...

    Text: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem...

  • Hello, I am designing a website for my class. I am using HTML/CSS/Jscript. I need to...

    Hello, I am designing a website for my class. I am using HTML/CSS/Jscript. I need to have my text in the body, white. All text and the picture centered but how do I have margins on the left and right side?. I have a figcaption and I dont know have to place it under the picture but I am having a hard time. Can you help me? Thank you! HTML <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet"...

  • CaesarCipher Introduction Hiding the meaning of messages by putting them in some kind of code is...

    CaesarCipher Introduction Hiding the meaning of messages by putting them in some kind of code is something we have all done, from the “coding rings” and secret symbols of childhood to the top secrecy of military and commercial establishments’ secret data. In fact, some of the earliest uses of computers were for coding messages and for breaking the enemy’s coded messages. Newer coding methods are among the most interesting research areas in computer science today. The Caesar Cipher One of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT