Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PROGRAM DESCRIPTION: In this assignment, you will write several regular expressi

ID: 3889860 • Letter: P

Question

PROGRAM DESCRIPTION: In this assignment, you will write several regular expressions, gawk scripts, and sed commands to accomplish certain requested functionality. Given the many powerful features of gawk and sed, you are provided with a link to a tutorial for gawk as well as sed to assist you in completing this assignment. Regular Expressions Write a regular expression that matches: a) all strings that end with a dot character".", without the quotes. b) all strings that begin with a "#" character, without the quotes. c) all floating-point numbers using standard notation (e.g., 12.345 or-12.345). Note that matching numbers may contain any number of digits before or after the decimal point. d) all floating-point numbers using scientific notation (e.g., 1.234e+5 or -1.234E-5). Again, matching numbers may contain any number of digits before or after the decimal point.

Explanation / Answer

Hi, you have posted multiple questions, we are not allowed to answer more than one question as per chegg policy, please post others as separate questions.
1. all strings that end with . can be matched with the $ end expression like
[a-zA-Z0-9].$ //here dollar matches the end of string character
2. All strings starting with #
^#[a-zA-Z0-9] // here ^ matches the first char
3.all floatin point numbers
[0-9]+.[0-9]+ // here + indicates one or more digits on both sides
4.[0-9]+.[0-9]*([Ee][0-9]+)?
here we are matching the dot as above and also exponent e by adding [Ee]
Thumbs up if this was helpful, otherwise let me know in comments

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote