Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Find a RegEx and the replacement string which takes a list of first and last names and replaces them so the last and first names

Find a RegEx and the replacement string which takes a list of first and last names and replaces them so the last and first names are reversed. Also, deletes any middle names. (In JavaScript)

Example list:

First Last

Fred Flintstone

First Middle Last

Benny J. Hill

Samuel L. Jackson

Example output:

Last, First

Hill, Benny

Last, First

Flintstone, Fred

Jackson, Samuel

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

Explain the Pascals Law ?

Answered: 1 week ago

Question

What are the objectives of performance appraisal ?

Answered: 1 week ago

Question

State the uses of job description.

Answered: 1 week ago