Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help parsing strings in java, regex can be used. Mask all the digits in a phone number except the last 4 dligits. Each number should

Help parsing strings in java, regex can be used.

image text in transcribed

Mask all the digits in a phone number except the last 4 dligits. Each number should be replaced by stan")Input Phone numbers can be with or without country code. Input Phone numbers can only haveorin them along with numbers and spaces. Make sure- is not masked in the output and make sure the number of stars is equal to the number of digits while masking. Phone numbers will always have 10 digits without country code and with country code they could be up to 13 digits. Example 1: +1 (333) 444-5678-> -'.a_6A,-5678 Example1:+91 (333)141-561 --56B Example! : +1 1 1 (333) 444-5678 -.> s_em.xxx-5678 Example2: 333 444 557a -x-5676 Example: (333) 444-56785678

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_2

Step: 3

blur-text-image_3

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

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago