1. Write regular expressions for the following languages using Go's regular expression syntax (using Go to test your answers would be a good idea). Use ^ and $ to get exact matches o Biological pronunciation for plants at Monrovia.com. On the Hot Blooded Lantana, Lantana camara, Monrovia Plant page, the pronunciation is: lan-TAY-na ca-MA-ra. For Blue Arrow Juniper, Juniperus scopulorum, Monrovia Plant, the pronunciation is: ju-NIP-er-us skop-u-LO-rum Each syllable is one or more letters, Each syllable uses all upper case if the syllable should be stressed, all lower case if not O ● Plant prices at Monrovia.com. Plants may be offered in different sizes, so if you click on the Container Size link on a page like: Hot Blooded Lantana, Lantana camara, Monrovia Plant, you find strings like: “#1 – .75 Gallon $16.99” or “#2 – 1.6 Gallon $36.99". For purposes of this assignment, you will just match the pattern rather than worry about the correctness. A few notes: The container size (1 or 2 above) is just a single digit The Gallon size is always less than 10, and just 1 or 2 digits after the decimal point ● Syllables are separated by a dash There are exactly two words (Scientific Plant Names | Landscape Plants | Oregon State University explains that the first word is the genus, the second word is the "specific epithet") ● Prices are less than $1000 and have exactly 2 digits after the decimal point (for cents)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Go Language

1. Write regular expressions for the following languages using Go's regular expression
syntax (using Go to test your answers would be a good idea). Use ^ and $ to get exact
matches
O
Biological pronunciation for plants at Monrovia.com. On the Hot Blooded
Lantana, Lantana camara, Monrovia Plant page, the pronunciation is: lan-TAY-na
ca-MA-ra. For Blue Arrow Juniper, Juniperus scopulorum, Monrovia Plant, the
pronunciation is: ju-NIP-er-us skop-u-LO-rum
Each syllable is one or more letters,
Each syllable uses all upper case if the syllable should be stressed, all
lower case if not
Syllables are separated by a dash
There are exactly two words (Scientific Plant Names | Landscape Plants |
Oregon State University explains that the first word is the genus, the
second word is the "specific epithet")
Plant prices at Monrovia.com. Plants may be offered in different sizes, so if you
click on the Container Size link on a page like: Hot Blooded Lantana, Lantana
camara, Monrovia Plant, you find strings like: “#1 – .75 Gallon $16.99” or “#2 -
1.6 Gallon $36.99". For purposes of this assignment, you will just match the
pattern rather than worry about the correctness. few notes:
The container size (1 or 2 above) is just a single digit
The Gallon size is always less than 10, and just 1 or 2 digits after the
decimal point
Prices are less than $1000 and have exactly 2 digits after the decimal point
(for cents)
Transcribed Image Text:1. Write regular expressions for the following languages using Go's regular expression syntax (using Go to test your answers would be a good idea). Use ^ and $ to get exact matches O Biological pronunciation for plants at Monrovia.com. On the Hot Blooded Lantana, Lantana camara, Monrovia Plant page, the pronunciation is: lan-TAY-na ca-MA-ra. For Blue Arrow Juniper, Juniperus scopulorum, Monrovia Plant, the pronunciation is: ju-NIP-er-us skop-u-LO-rum Each syllable is one or more letters, Each syllable uses all upper case if the syllable should be stressed, all lower case if not Syllables are separated by a dash There are exactly two words (Scientific Plant Names | Landscape Plants | Oregon State University explains that the first word is the genus, the second word is the "specific epithet") Plant prices at Monrovia.com. Plants may be offered in different sizes, so if you click on the Container Size link on a page like: Hot Blooded Lantana, Lantana camara, Monrovia Plant, you find strings like: “#1 – .75 Gallon $16.99” or “#2 - 1.6 Gallon $36.99". For purposes of this assignment, you will just match the pattern rather than worry about the correctness. few notes: The container size (1 or 2 above) is just a single digit The Gallon size is always less than 10, and just 1 or 2 digits after the decimal point Prices are less than $1000 and have exactly 2 digits after the decimal point (for cents)
Expert Solution
Step 1

In accordance with the Bartleby rules, I have offered a step-by-step explanation of the given problem.

Explanation:- 

 

For this step, please refer to the solution.

 

Programming tools and methods evolve and persist in an erratic manner. The ones that perform adequately within the appropriate niche or happen to be integrated with another successful piece of technology tend to succeed rather than the ones that are particularly attractive or brilliant.

 

I'll talk about regular expressions as one such technique in this chapter. Patterns in string data can be described using regular expressions. Together, they make up a tiny, distinct language that is a component of JavaScript and several other linguistic systems.

Regular expressions are both terribly awkward and extremely useful. Their syntax is obscure, and JavaScript's programming interface for them is awkward. However, they are an effective tool for examining and handling strings. A thorough grasp of regular expressions will improve your programming skills.

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Bare Bones Programming Language
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education