Question: Not sure how to answer or do this question.. Q1. What regular expression would you use to find a credit card number? Write the regular

Not sure how to answer or do this question..

Q1. What regular expression would you use to find a credit card number? Write the regular expression below and at least two examples of a credit card number that your regular expression can match.

So for an example I have made a fake number , how do I write the regular expression?

4440 9987 9923 7783

4440-9987-9923-7783

Q2.What regular expression would you use to find a URL? Write the regular expression below and at least two examples of an URL that your regular expression can match.

www.google.com

http://www.nytimes.com

What would be the expression? Please help. Thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!